My program crashes when I add this line of code:
uniform short colors[262144][3];
How many things am I doing wrong here?
- Can you use shorts in the shader?
- Can you use 2D arrays in the shader?
- Is the array much too large?
- Is my syntax for the declaration incorrect?
I am trying to pass in an array like this into the per pixel fragment shader, but for now I am just seeing if this line will work and my program crashes.