I have to do light recalculations whenever I translate the light scene node (because for some reason no one planned for moving lights??).
Did I miss something????
For moving the light, here's what I'd like:
Code: Select all
ILightSceneNode* lightNode = sceneManager->addLightSceneNode(0, SColorf( SColor(0xffffffff) ), vector3df(), 100 );
// somewhere later, like in an animator...
lightNode->setTranslation( vector3df(4,0,10) ); // Should change light data too, but doesn't
// but this is required:
lightNode->setRadius( lightNode->getRadius() );