summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2019-02-23 19:52:18 -0300
committerJuan Linietsky <juan@godotengine.org>2019-02-23 19:53:04 -0300
commitd79c8d76551990dd45594d01635ae7b0a2d9f90e (patch)
tree8e977660d490fc136d1fbb2d5a215291226fae0b /drivers/gles2/shaders
parentc2bc458dfed70aef9316802b142e0f4cbf567ffc (diff)
Fix vertex lighting in GLES2, closes #25365
Diffstat (limited to 'drivers/gles2/shaders')
-rw-r--r--drivers/gles2/shaders/scene.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl
index 6f86152598..faf88cf33d 100644
--- a/drivers/gles2/shaders/scene.glsl
+++ b/drivers/gles2/shaders/scene.glsl
@@ -904,6 +904,8 @@ uniform float ambient_energy;
#ifdef USE_LIGHTING
+uniform highp vec4 shadow_color;
+
#ifdef USE_VERTEX_LIGHTING
//get from vertex
@@ -916,7 +918,7 @@ uniform highp vec3 light_direction; //may be used by fog, so leave here
//done in fragment
// general for all lights
uniform highp vec4 light_color;
-uniform highp vec4 shadow_color;
+
uniform highp float light_specular;
// directional