Skip to content

Commit 868749b

Browse files
committedNov 26, 2020
Return star color calculation to what it previously was
1 parent 8689e00 commit 868749b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/client/sky.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ void Sky::draw_stars(video::IVideoDriver * driver, float wicked_time_of_day)
698698
float tod = wicked_time_of_day < 0.5f ? wicked_time_of_day : (1.0f - wicked_time_of_day);
699699
float starbrightness = (0.25f - fabsf(tod)) * 20.0f;
700700
m_star_color = m_star_params.starcolor;
701-
m_star_color.a = clamp(starbrightness * m_star_color.a, 0.0f, 1.0f);
701+
m_star_color.a *= clamp(starbrightness, 0.0f, 1.0f);
702702
if (m_star_color.a <= 0.0f) // Stars are only drawn when not fully transparent
703703
return;
704704
m_materials[0].DiffuseColor = m_materials[0].EmissiveColor = m_star_color.toSColor();

0 commit comments

Comments
 (0)
Please sign in to comment.