How to use samplerCube as array
问题 I am using samplerCube for a point light shadow map. For multiple lights, I implemented samplerCube as an array in the following. uniform samplerCube pointShadowMapTexture[MAX_LIGHT]; But somehow I can't index this samplerCube . Shader compiles and there is no problem. This is working for sampler2D arrays. I tried indexing it with [0], [1] .. in the shader but always the same image. I am sending different cube textures for each light but somehow shader doesn't index it or doesn't accept it. I