Fixed wrong lights color for legacy pipeline.
SColor is ARGB, but SColorf is RGBA... WTF?
This commit is contained in:
parent
35139877f6
commit
11255cb2b8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user