i dont really understand how to make my light directional as there is no setLightData in the Interface nor does the getLightData return a pointer.
atm moment ive this code:
Code: Select all
ILightSceneNode* sun = smgr->addLightSceneNode(0, vector3df(-25, 5, -25), SColorf(1.0f, 1.0f, 1.0f), 100.0f, -1);
SLight sunData = sun->getLightData();
sunData.Type = ELT_DIRECTIONAL;can someone explain me how to create a directional light and tell my why theres no simple function in the SceneMananger?
greets;
halan