diff options
author | sfan5 <sfan5@live.de> | 2020-11-26 22:17:11 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-11-26 22:17:11 +0100 |
commit | 868749b4f8e898be0c01f892ea78d859d054c17e (patch) | |
tree | dada8f85ae91d167ce3a8948985af2dcd6c904a2 /src/client | |
parent | 8689e00fca2cf55594d53f4e112f0d7b6676c8b0 (diff) | |
download | minetest-868749b4f8e898be0c01f892ea78d859d054c17e.tar.gz minetest-868749b4f8e898be0c01f892ea78d859d054c17e.tar.bz2 minetest-868749b4f8e898be0c01f892ea78d859d054c17e.zip |
Return star color calculation to what it previously was
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/sky.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/sky.cpp b/src/client/sky.cpp index 180d43066..9a2614eda 100644 --- a/src/client/sky.cpp +++ b/src/client/sky.cpp @@ -698,7 +698,7 @@ void Sky::draw_stars(video::IVideoDriver * driver, float wicked_time_of_day) float tod = wicked_time_of_day < 0.5f ? wicked_time_of_day : (1.0f - wicked_time_of_day); float starbrightness = (0.25f - fabsf(tod)) * 20.0f; m_star_color = m_star_params.starcolor; - m_star_color.a = clamp(starbrightness * m_star_color.a, 0.0f, 1.0f); + m_star_color.a *= clamp(starbrightness, 0.0f, 1.0f); if (m_star_color.a <= 0.0f) // Stars are only drawn when not fully transparent return; m_materials[0].DiffuseColor = m_materials[0].EmissiveColor = m_star_color.toSColor(); |