From e1a34d072813f5af2d868b3c69b7a9ae022df1a6 Mon Sep 17 00:00:00 2001 From: KaadmY Date: Mon, 25 Feb 2019 13:57:23 -0800 Subject: Fix orthographic shadow color when using GLES2 --- drivers/gles2/shaders/scene.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl index f90c6a6651..903615645f 100644 --- a/drivers/gles2/shaders/scene.glsl +++ b/drivers/gles2/shaders/scene.glsl @@ -1812,7 +1812,7 @@ FRAGMENT_SHADER_CODE #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 #else //fragment version of pssm -- cgit v1.2.3