I have problem with used shadow2DProj to Radeon 9500 and over. Possible i stuppid, but i know not how possible avoid the problem ?
Help me please.
Its my fp shader:
uniform sampler2D Texture0;
uniform sampler2D spotlight;
varying vec4 projlight;
varying vec4 IntensityLight;
varying vec2 glTexC;
void main(void)
{
vec4 tex0 = texture2D(Texture0, glTexC);
float lightspot = 0.0;
lightspot = shadow2DProj(spotlight, projlight).r; // problem. If kill it the string then shader will be work
gl_FragColor = vec4(0.33);
}