Here's the relevant bits of my code:
Code: Select all
IAnimatedMeshSceneNode* player = scene->addAnimatedMeshSceneNode (player_mesh);
...
player->setMaterialTexture (0, driver->getTexture ("textures/pointy_test.bmp"));
player->setMaterialFlag (EMF_LIGHTING, true);
player->setMaterialType (EMT_SOLID);
...
ILightSceneNode* light_base =
scene->addLightSceneNode (player, vector3df (10.0f, 0.0f, 10.0f), SColorf (1.0f, 0.2f, 0.2f), 1000.0f, -1);
...
Interesting bug though; under Windows the scene is completely black, while under Linux there is apparently 50% ambient lighting? (the white parts of the texture are mid-grey)