diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-26 08:50:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 08:50:42 +0100 |
commit | e47b4bdc3d4710ea091e196ed2f19e922a5c0098 (patch) | |
tree | 19ecee74e85d025d8c980257b7649abe1f19d928 | |
parent | a32b26dfa26f2a039bf9c84b90d10666bcf785c9 (diff) | |
parent | e1a34d072813f5af2d868b3c69b7a9ae022df1a6 (diff) |
Merge pull request #26286 from kaadmy/gles2_ortho_shadow
Fix orthographic shadow color when using GLES2
-rw-r--r-- | drivers/gles2/shaders/scene.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl index e638e94402..fa359125b2 100644 --- a/drivers/gles2/shaders/scene.glsl +++ b/drivers/gles2/shaders/scene.glsl @@ -1838,7 +1838,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 |