Skip to content

Commit

Permalink
Convert entity glow value to color space before adding to the light
Browse files Browse the repository at this point in the history
  • Loading branch information
x2048 committed Sep 4, 2022
1 parent 2854c19 commit 464043b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/content_cao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ void GenericCAO::updateLight(u32 day_night_ratio)
if (!pos_ok)
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)
final_color_blend(&light, light_at_pos, day_night_ratio);

Expand Down

0 comments on commit 464043b

Please sign in to comment.