So don’t ask me for entire code, there is no need. The problem is here.
If I type this code into GLSL, it works. Doesn’t give me non-compiled shader error.
int index = int(gl_Normal.x);
float r = radians(rotations[1000].z);
If I type this code however, shader doesn’t compile. What is wrong?
int index = int(gl_Normal.x);
float r = radians(rotations[index].z);
This won’t compile also.
int index = int(0);
float r = radians(rotations[index].z);