Skip to content

Commit dd59111

Browse files
committedMay 4, 2017
Directional coloured fog: Fix order of SColor components
'video::SColor pointcolor' was initialised with order RGBA instead of ARGB. No change in behaviour as 'm_bgcolor' has alpha 255.
1 parent 76ec6b8 commit dd59111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/sky.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ void Sky::update(float time_of_day, float time_brightness,
609609
);
610610

611611
// Horizon coloring based on sun and moon direction during sunset and sunrise
612-
video::SColor pointcolor = video::SColor(255, 255, 255, m_bgcolor.getAlpha());
612+
video::SColor pointcolor = video::SColor(m_bgcolor.getAlpha(), 255, 255, 255);
613613
if (m_directional_colored_fog) {
614614
if (m_horizon_blend() != 0) {
615615
// Calculate hemisphere value from yaw, (inverted in third person front view)

0 commit comments

Comments
 (0)
Please sign in to comment.