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:
Code :
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:
Code :
lightrange
lightrange[0]
lightrange[1]
lightrange[2]
lightrange[3]
I ask because it appears iOS would only recognize "lighttange[0]" while Samsung's stuff only recognizes "lightrange".