Skip to content

Commit

Permalink
Directional coloured fog: Fix order of SColor components
Browse files Browse the repository at this point in the history
'video::SColor pointcolor' was initialised with order RGBA instead of ARGB.
No change in behaviour as 'm_bgcolor' has alpha 255.
  • Loading branch information
paramat committed May 4, 2017
1 parent 76ec6b8 commit dd59111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sky.cpp
Expand Up @@ -609,7 +609,7 @@ void Sky::update(float time_of_day, float time_brightness,
);

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

0 comments on commit dd59111

Please sign in to comment.