From 9f480949823435b41f970841cfe2fccc4608e947 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 20 Dec 2018 13:54:56 +0800 Subject: fix gles2 spotlight problem --- drivers/gles2/shaders/scene.glsl | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers') 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; -- cgit v1.2.3