fix shadow color in GLES2 by making sRGB
This commit is contained in:
parent
a5dcabbbfb
commit
2a694a44cb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue