Fix shadow shader to support core profile.

This commit is contained in:
Bastien Montagne 2017-05-09 16:29:48 +02:00
parent 65ebb668ec
commit 24a64cb414
1 changed files with 4 additions and 0 deletions

View File

@ -2281,7 +2281,11 @@ void test_shadowbuf(
co.z -= shadowbias * co.w;
if (co.w > 0.0 && co.x > 0.0 && co.x / co.w < 1.0 && co.y > 0.0 && co.y / co.w < 1.0)
#if __VERSION__ == 120
result = shadow2DProj(shadowmap, co).x;
#else
result = textureProj(shadowmap, co);
#endif
else
result = 1.0;
}