Changeset 97 for trunk/VUT/Ogre/src
- Timestamp:
- 05/13/05 15:14:12 (20 years ago)
- Location:
- trunk/VUT/Ogre/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreSolidBoundingBox.cpp
r94 r97 119 119 void SolidBoundingBox::SetOcclusionQueryMaterial() 120 120 { 121 m_pMaterial = MaterialManager::getSingleton().getByName(" OcclusionQuery");121 m_pMaterial = MaterialManager::getSingleton().getByName("QueryMaterial"); 122 122 123 123 if(m_pMaterial.isNull()) 124 124 { 125 125 m_pMaterial = MaterialManager::getSingleton(). 126 create(" OcclusionQuery", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);126 create("QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 127 127 128 128 m_pMaterial->setColourWriteEnabled(false); … … 131 131 } 132 132 133 setMaterial(" OcclusionQuery");133 setMaterial("QueryMaterial"); 134 134 } 135 135 -
trunk/VUT/Ogre/src/OgreSolidHalfBoundingBox.cpp
r91 r97 87 87 void SolidHalfBoundingBox::SetOcclusionQueryMaterial( void ) 88 88 { 89 m_pMaterial = MaterialManager::getSingleton().getByName(" OcclusionQuery");89 m_pMaterial = MaterialManager::getSingleton().getByName("QueryMaterial"); 90 90 91 91 if(m_pMaterial.isNull()) 92 92 { 93 93 m_pMaterial = MaterialManager::getSingleton(). 94 create(" OcclusionQuery", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);94 create("QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 95 95 } 96 96 … … 99 99 m_pMaterial->setLightingEnabled(false); 100 100 101 setMaterial(" OcclusionQuery");101 setMaterial("QueryMaterial"); 102 102 } 103 103
Note: See TracChangeset
for help on using the changeset viewer.