in the documentation it says:
But I don't understand how to set the ambient color with getLightData() ...color: Diffuse color of the light. Ambient or Specular colors can be set manually with the ILightSceneNode::getLightData() method.
I've tried many things, but it don't compile.
Does Ambient lights are implemented?
BTW why does we use getLightData to set the color? Why not setLightData?
anyway here is my code:
Code: Select all
scene::ISceneNode* lumiere = smgr->addLightSceneNode(0,core::vector3df(0,0,0), SColorf(0.0f, 0.0f, 0.0f, 1.0f) , 600.0f);
SLight amb = lumiere.getLightData();
amb.AmbientColor = SColorf(1.0f, 0.5f, 0.0f, 1.0f);what can I do?
thanks for any help.