dwmkerr / glmnet

GlmNet is a .NET version of the excellent OpenGL Mathematics library (GLM).
MIT License
53 stars 20 forks source link

Perspective should return a matrix with its (3,3) entry set to 0.0 #8

Closed yolpsoftware closed 5 years ago

yolpsoftware commented 6 years ago

The glm.perspective() function returns a matrix with its (3,3) entry set to 1. This causes the perspective matrix to influence the camera position:

https://stackoverflow.com/questions/47716997/gllookat-moves-camera-position-when-lookat-is-moved-role-of-projection-matrix

When the (3,3) entry is set to 0.0, everything works fine.