Merge pull request #24495 from vipsbpig/pr-fix-gles2-spotlight

Fix GLES2 Spotlight shadow problem
This commit is contained in:
Rémi Verschelde 2018-12-20 10:08:23 +01:00 committed by GitHub
commit 1a2fc40f86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1914,7 +1914,6 @@ FRAGMENT_SHADER_CODE
#ifdef USE_SHADOW
{
highp vec4 splane = shadow_coord;
splane.xyz /= splane.w;
float shadow = sample_shadow(light_shadow_atlas, splane);
light_att *= shadow;