gpeterpan

Problems with sampler2dShadow

Discussion created by gpeterpan on Apr 7, 2011
Latest reply on May 27, 2011 by simonwood1

Hi!

I have a frament shader in GLSL language and when I use getUniformLocation with a variable then the function returns -1.

 

In fragment shader:

uniform sampler2DShadow shadowVar;

 

In C code:

idVariable = getUniformLocation(shader, "shadowVar");

idVariable is asigned -1.

 

I get this problem with ATI HD 5670 cards only.

Can anyone help me,please?

Outcomes