diff --git a/data/shaders/glow_object.frag b/data/shaders/glow_object.frag index a811b40f8..5f8222e95 100644 --- a/data/shaders/glow_object.frag +++ b/data/shaders/glow_object.frag @@ -4,5 +4,5 @@ out vec4 FragColor; void main() { - FragColor = vec4(glowColor.rgb, 1.0); + FragColor = vec4(glowColor.bgr, 1.0); } diff --git a/src/graphics/shader_based_renderer.cpp b/src/graphics/shader_based_renderer.cpp index fcd90cc6b..b3d4842e7 100644 --- a/src/graphics/shader_based_renderer.cpp +++ b/src/graphics/shader_based_renderer.cpp @@ -153,7 +153,7 @@ void ShaderBasedRenderer::addItemsInGlowingList() dat.b = c.getBlue(); STKMeshSceneNode *stk_node = static_cast(node); - stk_node->setGlowColors(irr::video::SColor(0, (unsigned) (dat.b * 255.f), (unsigned)(dat.g * 255.f), (unsigned)(dat.r * 255.f))); + stk_node->setGlowColors(irr::video::SColor(0, (unsigned) (dat.r * 255.f), (unsigned)(dat.g * 255.f), (unsigned)(dat.b * 255.f))); m_glowing.push_back(dat); } @@ -753,7 +753,7 @@ void ShaderBasedRenderer::addGlowingNode(scene::ISceneNode *n, float r, float g, dat.b = b; STKMeshSceneNode *node = static_cast(n); - node->setGlowColors(irr::video::SColor(0, (unsigned) (dat.b * 255.f), (unsigned)(dat.g * 255.f), (unsigned)(dat.r * 255.f))); + node->setGlowColors(irr::video::SColor(0, (unsigned) (dat.r * 255.f), (unsigned)(dat.g * 255.f), (unsigned)(dat.b * 255.f))); m_glowing.push_back(dat); m_nb_static_glowing++;