Merge pull request #34367 from clayjohn/GLES2-shadow_color

Fix shadow color in GLES2 by making sRGB
This commit is contained in:
Rémi Verschelde 2019-12-16 08:05:17 +01:00 committed by GitHub
commit c39aa2b200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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