mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Convert entity glow value to color space before adding to the light
This commit is contained in:
parent
4ef221a645
commit
d51331f51f
1 changed files with 1 additions and 1 deletions
|
@ -881,7 +881,7 @@ void GenericCAO::updateLight(u32 day_night_ratio)
|
||||||
if (!pos_ok)
|
if (!pos_ok)
|
||||||
light_at_pos = LIGHT_SUN;
|
light_at_pos = LIGHT_SUN;
|
||||||
|
|
||||||
video::SColor light = encode_light(light_at_pos, m_prop.glow);
|
video::SColor light = encode_light(light_at_pos, decode_light(m_prop.glow));
|
||||||
if (!m_enable_shaders)
|
if (!m_enable_shaders)
|
||||||
final_color_blend(&light, light_at_pos, day_night_ratio);
|
final_color_blend(&light, light_at_pos, day_night_ratio);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue