Changeset 117 for trunk/VUT/Ogre
- Timestamp:
- 05/30/05 08:09:49 (20 years ago)
- Location:
- trunk/VUT/Ogre
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/include/OgreSolidBoundingBox.h
r97 r117 32 32 /** 33 33 Sets the material used for occlusion queries. 34 @remark the material is called " QueryMaterial" and34 @remark the material is called "Visibility/QueryMaterial" and 35 35 uses no lighting, no depth write, and no colours 36 36 */ -
trunk/VUT/Ogre/include/OgreSolidHalfBoundingBox.h
r97 r117 32 32 /** 33 33 Sets the material used for occlusion queries. 34 @remark the material is called " QueryMaterial" and34 @remark the material is called "Visibility/QueryMaterial" and 35 35 uses no lighting, no depth write, and no colours 36 36 */ -
trunk/VUT/Ogre/src/OgreSolidBoundingBox.cpp
r103 r117 120 120 void SolidBoundingBox::SetOcclusionQueryMaterial() 121 121 { 122 m_pMaterial = MaterialManager::getSingleton().getByName(" QueryMaterial");122 m_pMaterial = MaterialManager::getSingleton().getByName("Visibility/QueryMaterial"); 123 123 124 124 if (m_pMaterial.isNull()) 125 125 { 126 126 m_pMaterial = MaterialManager::getSingleton(). 127 create(" QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);127 create("Visibility/QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 128 128 129 m_pMaterial->setColourWriteEnabled(false); 130 m_pMaterial->setDepthWriteEnabled(false); 131 m_pMaterial->setLightingEnabled(false); 129 Pass *queryPass = m_pMaterial->getTechnique(0)->getPass(0); 130 queryPass->setColourWriteEnabled(false); 131 queryPass->setDepthWriteEnabled(false); 132 queryPass->setLightingEnabled(false); 132 133 } 133 134 134 setMaterial(" QueryMaterial");135 setMaterial("Visibility/QueryMaterial"); 135 136 } 136 137 -
trunk/VUT/Ogre/src/OgreSolidHalfBoundingBox.cpp
r103 r117 87 87 void SolidHalfBoundingBox::SetOcclusionQueryMaterial( void ) 88 88 { 89 m_pMaterial = MaterialManager::getSingleton().getByName(" QueryMaterial");89 m_pMaterial = MaterialManager::getSingleton().getByName("Visibility/QueryMaterial"); 90 90 91 91 if (m_pMaterial.isNull()) 92 92 { 93 93 m_pMaterial = MaterialManager::getSingleton(). 94 create(" QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);94 create("Visibility/QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 95 95 } 96 96 … … 99 99 m_pMaterial->setLightingEnabled(false); 100 100 101 setMaterial(" QueryMaterial");101 setMaterial("Visibility/QueryMaterial"); 102 102 } 103 103 -
trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp
r116 r117 51 51 mDepthPass->setDepthWriteEnabled(true); 52 52 mDepthPass->setLightingEnabled(false); 53 depthMat->load();53 //depthMat->load(); 54 54 } 55 55 else
Note: See TracChangeset
for help on using the changeset viewer.