summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-04-03 14:36:10 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-04-03 14:36:10 -0300
commit5d99e15e43d5a446b35d48e8a3b08a478f1998a9 (patch)
tree73fbf9ba2efe825815a56a73dd3c2828a34fbc64 /drivers/gles2/shaders
parent9fa1698c7420bae2c6353bf300ce2cdb73434bf6 (diff)
fix shadow issue with lights in mix mode, i think fixes #1611
Diffstat (limited to 'drivers/gles2/shaders')
-rw-r--r--drivers/gles2/shaders/canvas.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/shaders/canvas.glsl b/drivers/gles2/shaders/canvas.glsl
index bb47de6688..c4f0847870 100644
--- a/drivers/gles2/shaders/canvas.glsl
+++ b/drivers/gles2/shaders/canvas.glsl
@@ -369,7 +369,7 @@ LIGHT_SHADER_CODE
#if defined(USE_LIGHT_SHADOW_COLOR)
color=mix(shadow_color,color,shadow_attenuation);
#else
- color.rgb*=shadow_attenuation;
+ color*=shadow_attenuation;
#endif
//use shadows
#endif