I'm having a problem with a simple light, at least I think there is a problem.
First, I have a terrain with simple material:
Code: Select all
Material.Lighting = true;
Material.setTexture(0, mgr->getVideoDriver()->getTexture("dirt.jpg"));
Material.GouraudShading=true;
Material.FogEnable=true;
Code: Select all
driver->setFog(fogcolor,video::EFT_FOG_LINEAR,
ILightSceneNode * lightnode =
smgr->addLightSceneNode ( smgr->getRootSceneNode(),
vector3df(200, height+500, 200),
SColorf(173.f / 255.0f, 81.f/255.f, 51.f/255.f, 0.1 ), 100);
smgr->setAmbientLight(SColor(255,70,40,20));
I have no idea what causes this. Anyone can help with this? If you want I can provide a sceenshot.
edit: maybe it doesn't matter, but I do use vbo's (hardware hint to static)
thanks a lot!