]> git.lizzy.rs Git - minetest.git/commitdiff
Directional coloured fog: Fix order of SColor components
authorparamat <mat.gregory@virginmedia.com>
Thu, 4 May 2017 02:02:16 +0000 (03:02 +0100)
committerparamat <mat.gregory@virginmedia.com>
Thu, 4 May 2017 03:26:06 +0000 (04:26 +0100)
'video::SColor pointcolor' was initialised with order RGBA instead of ARGB.
No change in behaviour as 'm_bgcolor' has alpha 255.

src/sky.cpp

index 5414f74bd5056d0f9578cce1f663052882036f6e..b739fe1ad0cdb955b7b16d0065aebd3af072f3af 100644 (file)
@@ -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)