|
Hello,
I try to get a uniform location but it returns -1
/////////////////////////////// Shader code
struct LightSource
{
vec4 position;
vec4 diffuse;
};
uniform LightSource light;
////////////////////////////// Java code
int lightPositionLocation=gl.glGetUniformLocation(shaderProgramID, "light.position");
int lightDiffuseLocation=gl.glGetUniformLocation(shaderProgramID, "light.diffuse");
thanks
|