diff options
author | clayjohn <claynjohn@gmail.com> | 2019-12-15 10:27:31 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2019-12-15 10:27:31 -0800 |
commit | 2a694a44cb8ceb9f333625dab3a14309a2bc14aa (patch) | |
tree | 2fde584d74ae7b41923771f2376edad854c6a63a /drivers | |
parent | a5dcabbbfb2a0b9c6688ea0b6f788491f350f5da (diff) |
fix shadow color in GLES2 by making sRGB
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles2/rasterizer_scene_gles2.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gles2/rasterizer_scene_gles2.cpp b/drivers/gles2/rasterizer_scene_gles2.cpp index 06608c658d..4e85fc93dd 100644 --- a/drivers/gles2/rasterizer_scene_gles2.cpp +++ b/drivers/gles2/rasterizer_scene_gles2.cpp @@ -1954,8 +1954,7 @@ 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); + state.scene_shader.set_uniform(SceneShaderGLES2::SHADOW_COLOR, light_ptr->shadow_color); //specific parameters |