diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl index 5346af0cbb6..e09423c2935 100644 --- a/source/blender/gpu/shaders/gpu_shader_material.glsl +++ b/source/blender/gpu/shaders/gpu_shader_material.glsl @@ -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; }