Fix orthographic shadow color when using GLES2
This commit is contained in:
parent
51c1d55cf9
commit
e1a34d0728
@ -1812,7 +1812,7 @@ FRAGMENT_SHADER_CODE
|
|||||||
|
|
||||||
#if !defined(LIGHT_USE_PSSM4) && !defined(LIGHT_USE_PSSM2)
|
#if !defined(LIGHT_USE_PSSM4) && !defined(LIGHT_USE_PSSM2)
|
||||||
|
|
||||||
light_att *= sample_shadow(light_directional_shadow, shadow_coord);
|
light_att *= mix(shadow_color.rgb, vec3(1.0), sample_shadow(light_directional_shadow, shadow_coord));
|
||||||
#endif //orthogonal
|
#endif //orthogonal
|
||||||
|
|
||||||
#else //fragment version of pssm
|
#else //fragment version of pssm
|
||||||
|
Loading…
Reference in New Issue
Block a user