mirror of https://github.com/godotengine/godot
Fix over saturated static colored lights
This commit is contained in:
parent
0b6a717ac1
commit
9cb317c7c0
|
|
@ -648,7 +648,7 @@ void trace_direct_light(vec3 p_position, vec3 p_normal, uint p_light_index, bool
|
||||||
}
|
}
|
||||||
|
|
||||||
r_shadow = penumbra;
|
r_shadow = penumbra;
|
||||||
r_light = light_data.color * light_data.energy * attenuation * penumbra * penumbra_color;
|
r_light = light_data.energy * attenuation * penumbra * penumbra_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue