Hi!
I am trying to send two 4x3 matrices to my shader. Unfortunately I get the error invalid operation as soon as I call the above mentioned function.
The parameters passed into the function are as follows:
glUniformMatrix4x3fv(“Parameter location”, 2, false, float[24], 0)
Shader code:
uniform mat4 mats[2];
…
If I change the number of floats passed to 32 and use the glUniformMatrix4fv function everything works fine. I guess that means the shader
code itself is working fine for 4x4 matrices.
What could be my mistake? Do I have to declare 4x3 matrices differently in GLSL?
Is this function supported in JOGL?
Any other ideas?
Thanks in advance
Dee