it seems that lighting doesn't work on detail maps.
Code: Select all
terrain->setMaterialFlag(video::EMF_LIGHTING, true);
terrain->setMaterialTexture(0,
driver->getTexture("../../media/terrain-texture.jpg"));
terrain->setMaterialTexture(1,
driver->getTexture("../../media/detailmap3.jpg"));
terrain->setMaterialType(video::EMT_DETAIL_MAP);
I'm using Irrlicht 1.8