Skip to content

orthographic matrix does not match those from glm etc #36

Description

@cbaggers

https://gist.github.com/mfiano/6573a9b32a77dd3174f2453502ad9c39

;; these are the results of rtg-math compared to other libraries when constructing an orthographic projection matrix:

;; window size: 320x180
;; near: 0
;; far: 64

;; rtg-math
;; 0.0125, 0.0, 0.0, -0.0
;; 0.0, 0.022222223, 0.0, -0.0
;; 0.0, 0.0, -0.03125, -1.0
;; 0.0, 0.0, 0.0, 1.0

;; 3 other libraries:
;; C's GLM, 3d-vectors, gamebox-math
;; 0.00625 0.0 0.0 -0.0
;; 0.0 0.011111111 0.0 -0.0
;; 0.0 0.0 -0.03125 -1.0
;; 0.0 0.0 0.0 1.0

Thanks to mfiano for spotting this.

Make sure to update the gpu version too

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions