From d51331f51f1144a575f6af4742a6360b22891bbb Mon Sep 17 00:00:00 2001 From: x2048 Date: Sun, 4 Sep 2022 16:00:13 +0200 Subject: [PATCH] Convert entity glow value to color space before adding to the light --- src/client/content_cao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index 568d25fb7..ac4a8f6f9 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -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);