Fixed wrong lights color for legacy pipeline.

SColor is ARGB, but SColorf is RGBA... WTF?
This commit is contained in:
Deve 2017-03-08 21:12:24 +01:00
parent 35139877f6
commit 11255cb2b8

View File

@ -2057,7 +2057,7 @@ scene::ISceneNode *IrrDriver::addLight(const core::vector3df &pos,
{
scene::ILightSceneNode* light = m_scene_manager
->addLightSceneNode(m_scene_manager->getRootSceneNode(),
pos, video::SColorf(1.0f, r, g, b));
pos, video::SColorf(r, g, b, 1.0f));
light->setRadius(radius);
return light;
}