Skip to content

fixed a bug in Orthographic matrix.#131

Open
Berzeger wants to merge 1 commit into
TheCherno:masterfrom
Berzeger:master
Open

fixed a bug in Orthographic matrix.#131
Berzeger wants to merge 1 commit into
TheCherno:masterfrom
Berzeger:master

Conversation

@Berzeger

@Berzeger Berzeger commented Apr 25, 2017

Copy link
Copy Markdown

Judging from this picture: https://www.safaribooksonline.com/library/view/opengl-es-2/9781941222560/images/AspectRatio/OrthographicMatrixDefinition.png, I believe you accidentally flipped the sign at the line I edited.

@incognitojam

Copy link
Copy Markdown

I realise that this pull request is from a while ago, but the code is actually correct. Yan's code is equivalent to that graphic because whilst he swapped the far and near around, he is also 'missing' the minus sign at the beginning. This makes it equal because (as I'm sure you know as well) a double negative makes a positive.

@Berzeger

Copy link
Copy Markdown
Author

The thing is, he didn't swap anything around, he only omitted the minus sign.

@incognitojam

Copy link
Copy Markdown

Oh, sorry, I was reading the wrong side of the diff.

@Berzeger

Copy link
Copy Markdown
Author

No harm done :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants