summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-20 10:08:23 +0100
committerGitHub <noreply@github.com>2018-12-20 10:08:23 +0100
commit1a2fc40f86b7b39f443dd7bf64b9d765d9851152 (patch)
treef1cc9030255b7e55c9d214f7f7aeef00ec91c259 /drivers
parent45f1cdb0b73b355d9c959e9f2a12bb4dc58c6e13 (diff)
parent9f480949823435b41f970841cfe2fccc4608e947 (diff)
Merge pull request #24495 from vipsbpig/pr-fix-gles2-spotlight
Fix GLES2 Spotlight shadow problem
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles2/shaders/scene.glsl1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl
index aba283970a..8ccaeda0ce 100644
--- a/drivers/gles2/shaders/scene.glsl
+++ b/drivers/gles2/shaders/scene.glsl
@@ -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;