Hello,
since the built-in uniforms gl_ModelViewMatrix, gl_ModelView,
gl_ProjectionMatrix and gl_NormalMatrix are deprecated I
wonder which alternative you are using?
My first thought was to use this code (gluPerspective) to calculate
an own “gl_ProjectionMatrix” and this code to calculate the
“gl_ModelView” matrix.
Then I can make these matrices available in the shader
using glUniformMatrix4fv, right?
Is this a good way to do it? Does anybody already have some
code to calculate the gl_NormalMatrix. According to this article it is
the transpose of the inverse of the upper 3x3 gl_ModelViewMatrix.
And a last question, how to replace the glViewport() stuff,
I guess it is also deprecated?
Thanks
Best regards!