The mat4.ortho function is different from the glOrtho implementation (found at
http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml), which switches the
positive and negative directions.
Fixed by changing:
1247 dest[12] = (left + right) / rl;
1248 dest[13] = (top + bottom) / tb;
1249 dest[14] = (far + near) / fn;
to:
1247 dest[12] = -(left + right) / rl;
1248 dest[13] = -(top + bottom) / tb;
1249 dest[14] = -(far + near) / fn;
Cheers for the library - it's super useful,
Joe
Original issue reported on code.google.com by orphansa...@gmail.com on 23 Sep 2010 at 3:23
Original issue reported on code.google.com by
orphansa...@gmail.com
on 23 Sep 2010 at 3:23