summaryrefslogtreecommitdiff
path: root/drivers/gles2/rasterizer_scene_gles2.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-02-18 13:48:17 +0100
committerGitHub <noreply@github.com>2019-02-18 13:48:17 +0100
commit19f79d04fbf69ba7366fd9dd0269e97b181f1638 (patch)
tree0efc155b28f701598583ccb8c2a478022c9348d8 /drivers/gles2/rasterizer_scene_gles2.cpp
parentf023e40f6e7eab1e7a4fd17f4902bbab521d8054 (diff)
parent9b0326d2f32f07283b5b4e73af963a3b7c0cfae0 (diff)
Merge pull request #26005 from clayjohn/gles2_shadow_color
Added shadow_color property to gles2
Diffstat (limited to 'drivers/gles2/rasterizer_scene_gles2.cpp')
-rw-r--r--drivers/gles2/rasterizer_scene_gles2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_scene_gles2.cpp b/drivers/gles2/rasterizer_scene_gles2.cpp
index ac1aae62bd..03e6c185ee 100644
--- a/drivers/gles2/rasterizer_scene_gles2.cpp
+++ b/drivers/gles2/rasterizer_scene_gles2.cpp
@@ -1790,6 +1790,9 @@ void RasterizerSceneGLES2::_setup_light(LightInstance *light, ShadowAtlas *shado
Color color = light_ptr->color * sign * energy * Math_PI;
state.scene_shader.set_uniform(SceneShaderGLES2::LIGHT_COLOR, color);
+ Color shadow_color = light_ptr->shadow_color.to_linear();
+ state.scene_shader.set_uniform(SceneShaderGLES2::SHADOW_COLOR, shadow_color);
+
//specific parameters
switch (light_ptr->type) {