20 if (caps && caps->hasCapability(Ogre::RSC_HWSTENCIL))
23 Ogre::MaterialPtr mcaster = Ogre::MaterialManager::getSingleton().getByName(
"Ogre/StencilShadowVolumes");
24 ogreScene->setShadowTextureCasterMaterial(mcaster);
25 ogreScene->setShadowTextureReceiverMaterial(mcaster);
27 ogreScene->setShadowTexturePixelFormat(Ogre::PF_X8R8G8B8);
29 ogreScene->setShadowTechnique(newTechnique);
35 Ogre::MaterialPtr emptyMat;
36 ogreScene->setShadowTextureCasterMaterial(emptyMat);
37 ogreScene->setShadowTextureReceiverMaterial(emptyMat);
39 ogreScene->setShadowTexturePixelFormat(Ogre::PF_X8R8G8B8);
40 ogreScene->setShadowCasterRenderBackFaces(
false);
41 ogreScene->setShadowTextureSelfShadow(
false);
42 ogreScene->setShadowTechnique(Ogre::SHADOWTYPE_NONE);