Changeset 117 for trunk/VUT/Ogre/src


Ignore:
Timestamp:
05/30/05 08:09:49 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/Ogre/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/src/OgreSolidBoundingBox.cpp

    r103 r117  
    120120void SolidBoundingBox::SetOcclusionQueryMaterial() 
    121121{ 
    122         m_pMaterial = MaterialManager::getSingleton().getByName("QueryMaterial"); 
     122        m_pMaterial = MaterialManager::getSingleton().getByName("Visibility/QueryMaterial"); 
    123123 
    124124        if (m_pMaterial.isNull()) 
    125125        { 
    126126                m_pMaterial = MaterialManager::getSingleton(). 
    127                         create("QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
     127                        create("Visibility/QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
    128128 
    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); 
    132133        } 
    133134 
    134         setMaterial("QueryMaterial"); 
     135        setMaterial("Visibility/QueryMaterial"); 
    135136} 
    136137 
  • trunk/VUT/Ogre/src/OgreSolidHalfBoundingBox.cpp

    r103 r117  
    8787void SolidHalfBoundingBox::SetOcclusionQueryMaterial( void ) 
    8888{ 
    89         m_pMaterial = MaterialManager::getSingleton().getByName("QueryMaterial"); 
     89        m_pMaterial = MaterialManager::getSingleton().getByName("Visibility/QueryMaterial"); 
    9090 
    9191        if (m_pMaterial.isNull()) 
    9292        { 
    9393                m_pMaterial = MaterialManager::getSingleton(). 
    94                         create("QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
     94                        create("Visibility/QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
    9595        } 
    9696 
     
    9999        m_pMaterial->setLightingEnabled(false); 
    100100 
    101         setMaterial("QueryMaterial"); 
     101        setMaterial("Visibility/QueryMaterial"); 
    102102} 
    103103 
  • trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp

    r116 r117  
    5151                mDepthPass->setDepthWriteEnabled(true); 
    5252                mDepthPass->setLightingEnabled(false); 
    53                 depthMat->load(); 
     53                //depthMat->load(); 
    5454        } 
    5555        else 
Note: See TracChangeset for help on using the changeset viewer.