E.g.
Code: Select all
ILightSceneNode* flashlight;
flashlight= smgr->addLightSceneNode(0, vector3df(0,10,0), SColorf(1,0.8,0.8), 20);
SLight flashlightData;
flashlightData.Direction= camera->getRotation();
flashlightData.OuterCone= 20;
flashlightData.Position= camera->getPosition();
flashlightData.Falloff= 30;
flashlightData.Type= ELT_SPOT;
[b]flashlightData.Radius= 20;[/b]
flashlight->setLightData(flashlightData);
flashlight->setParent(camera);
Just thought you should know.