Open Berzeger opened 7 years ago
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.
The thing is, he didn't swap anything around, he only omitted the minus sign.
Oh, sorry, I was reading the wrong side of the diff.
No harm done :)
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.