-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About orthographic projection matrix #785
Comments
Hi @Ligo04 ! Off the top of my head (I still need to empirically test how it plays with the rest of the code) I think you're right - The ortho matrix is: Subbing the current case (1): Subbing the commented out case (2): where For the default NDC space ranging |
Yes. Thanks~. Hope this can be updated |
I don't particularly understand why the projection matrix function
projection_matrix
of the orthographic camera uses the following calculation formulas fortop, bottom, right, left
. The ndc coordinates calculated in this way are incorrect.Instead of using the standard form, the function code is commented out and the ndc calculated using the standard form is correct.
The text was updated successfully, but these errors were encountered: