Thanks for the quick responses.
I was actually adding shadow volumes, which I forgot to mention. However, I'm loading the scenes as an .irr file, and I don't think it is calling the addShadowVolume function correctly.
Code: Select all
/** SCENES */
scene->loadScene("maps\\floodwall.irr");
scene->setAmbientLight(SColorf(0.8, 0.8, 0.8));
array<ISceneNode*> nodes;
scene->getSceneNodesFromType(ESNT_MESH, nodes, scene->getRootSceneNode());
DEBUG(nodes.size());
for(unsigned short i=0; i<nodes.size(); i++){
IAnimatedMeshSceneNode* m = dynamic_cast<IAnimatedMeshSceneNode*>(nodes[i]);
m->addShadowVolumeSceneNode();
m->setMaterialType(EMT_PARALLAX_MAP_SOLID);
}
There are probably much better of ways of doing the above code, but I'm new to irrlicht.
Also, I'll probably just check out the shadow shaders, that sounds better, especially since I need to learn how to use the shader support.