Merge pull request #26286 from kaadmy/gles2_ortho_shadow

Fix orthographic shadow color when using GLES2
This commit is contained in:
Rémi Verschelde 2019-02-26 08:50:42 +01:00 committed by GitHub
commit e47b4bdc3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1838,7 +1838,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