fix shadow color in GLES2 by making sRGB

This commit is contained in:
clayjohn 2019-12-15 10:27:31 -08:00
parent a5dcabbbfb
commit 2a694a44cb

View File

@ -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