Hello all!
I want to know which of the following ways is the best for passing my world/view/projection matrices into a GLSL shader.
1) passing the matrices as uniforms to the shader
2) setting the matrices with glMatrixMode() "outside" glsl. and then in the glsl programm access the OpenGL state to get the matrices.
Thanks for your time!![]()




