i have a big problem with lights.
I can't do what i want to do.
How can i put infinite point light ? Is is possible ? and how ?
How can i put directionnal light ?
The tutorials and examples only show how to use point light with attenuation. And The documentation is very limited, and when i follow the things that should be done it does not work.
When i try to use directionnal lights, i have always the light in the same direction.
Code: Select all
scene::ILightSceneNode* nodeLight = smgr->addLightSceneNode(0, core::vector3df(0, -1, 0),
video::SColorf(1.0f,1.0f,1.0f,1.0f),
20000.0f);
nodeLight->getLightData().Type = video::ELT_DIRECTIONAL;
nodeLight->getLightData().Direction = core::vector3df(1, 0, 0);
nodeLight->getLightData().SpecularColor = video::SColorf(0.0f,0.0f,0.0f,1);
nodeLight->getLightData().AmbientColor = video::SColorf(0.0f,0.0f,0.0f,1);
I use Irrlicht 1.5