Code: Select all
scene::ILightSceneNode* light2 =
smgr->addLightSceneNode(0, core::vector3df(0,0,0),
video::SColorf(0.0f, 0.0f, 0.0f, 0.0f), 800.0f);
light2->getLightData().AmbientColor=video::SColorf(0.3f,0.3f,0.3f,1.0f);
light2->getLightData().DiffuseColor = video::SColorf(1.0f,0.5f,0.5f,1.0f);
light2->getLightData().SpecularColor = video::SColorf(1.0f,0.8f,0.8f,1.0f);
light2->getLightData().Type=video::ELT_DIRECTIONAL;
light2->setRotation(core::vector3df(0,180,0));
Edit: okay. New machine is up, and the directional light works. Now I just get to be annoyed that I'm sharing the only decent graphics card in the office with 4 other people