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
1 changed files with 1 additions and 2 deletions

View File

@ -1954,8 +1954,7 @@ void RasterizerSceneGLES2::_setup_light(LightInstance *light, ShadowAtlas *shado
Color color = light_ptr->color * sign * energy * Math_PI; Color color = light_ptr->color * sign * energy * Math_PI;
state.scene_shader.set_uniform(SceneShaderGLES2::LIGHT_COLOR, color); 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, light_ptr->shadow_color);
state.scene_shader.set_uniform(SceneShaderGLES2::SHADOW_COLOR, shadow_color);
//specific parameters //specific parameters