diff options
author | x2048 <codeforsmile@gmail.com> | 2022-09-04 16:00:13 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-09-14 13:48:06 +0200 |
commit | d51331f51f1144a575f6af4742a6360b22891bbb (patch) | |
tree | 479114f8c25b7c04fd7c445371d4e2363a72df9f /src | |
parent | 4ef221a645fd4023ebed61cee345af59cb3fbd7e (diff) | |
download | minetest-d51331f51f1144a575f6af4742a6360b22891bbb.tar.gz minetest-d51331f51f1144a575f6af4742a6360b22891bbb.tar.bz2 minetest-d51331f51f1144a575f6af4742a6360b22891bbb.zip |
Convert entity glow value to color space before adding to the light
Diffstat (limited to 'src')
-rw-r--r-- | src/client/content_cao.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |