mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #34367 from clayjohn/GLES2-shadow_color
Fix shadow color in GLES2 by making sRGB
This commit is contained in:
commit
c39aa2b200
@ -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
Block a user