摘要:
Ogre::MaterialPtrmeterialPtr=Ogre::MaterialManager::getSingleton().getByName(meterialName);Ogre::Pass*pass=meterialPtr->getTechnique(0)->getPass(0);if(pass){pass->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA);pass->setDepthWriteEnabled(false);/*pass->setDepthCheckEnabled(false);*/pass 阅读全文