My understanding of GLSL uniform arrays is that they should be identifiable by both the name along, and the name along with the array index in brackets. For example, if I had this uniform array in my shader:
uniform float lightrange[4];
Then according to the spec, my program should be able to set the array, or parts of the array, with any of the following uniform names:
[QUOTE=JoshKlint;29114]My understanding of GLSL uniform arrays is that they should be identifiable by both the name along, and the name along with the array index in brackets. For example, if I had this uniform array in my shader:
uniform float lightrange[4];
Then according to the spec, my program should be able to set the array, or parts of the array, with any of the following uniform names: