Ignore:
Timestamp:
06/10/05 01:46:50 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r121 r122  
    1616:  
    1717mVisibilityManager(visManager),  
    18 mIsDepthPass(false), 
     18mRenderDepthPass(false), 
    1919mShowVisualization(false), 
    2020mRenderNodesForViz(false), 
     
    6969{ 
    7070        // setting vertex program is not efficient 
    71         Pass *usedPass = ((mIsDepthPass && pass->getDepthWriteEnabled() && !pass->hasVertexProgram()) ? mDepthPass : pass);              
     71        Pass *usedPass = ((mRenderDepthPass && pass->getDepthWriteEnabled() &&  
     72                !pass->hasVertexProgram()) ? mDepthPass : pass);                 
    7273 
    7374        /* 
    7475        // set depth fill pass only if depth write enabled 
    75         Pass *usedPass = (mIsDepthPass && pass->getDepthWriteEnabled() ? mDepthPass : pass); 
    76  
    77     if (mIsDepthPass && pass->hasVertexProgram()) 
     76        Pass *usedPass = (mRenderDepthPass && pass->getDepthWriteEnabled() ? mDepthPass : pass); 
     77 
     78    if (mRenderDepthPass && pass->hasVertexProgram()) 
    7879    { 
    7980                // set vertex program of current pass to depth pass 
     
    127128 
    128129                for (NodeList::iterator it = mVisible.begin(); it != mVisible.end(); ++it) 
    129         { 
     130                { 
    130131 
    131132                        if (mRenderNodesForViz) 
     
    169170        // create material for depth pass 
    170171        InitDepthPass(); 
    171  
     172         
    172173        // visualization: apply standard rendering 
    173174        if (mShowVisualization) 
     
    175176                OctreeSceneManager::_renderVisibleObjects(); 
    176177                return; 
    177         }  
    178          
     178        }        
    179179 
    180180        //-- hierarchical culling 
     
    218218 
    219219        // set state for depth pass 
    220     mIsDepthPass = mUseDepthPass; 
     220    mRenderDepthPass = mUseDepthPass; 
    221221         
    222222        /**  
     
    241241                        (*it)->_addToRenderQueue(mCameraInProgress, getRenderQueue(), false); 
    242242                } 
    243                 mIsDepthPass = false; 
     243                mRenderDepthPass = false; 
    244244    } 
    245245        mSkipTransparents = false; 
Note: See TracChangeset for help on using the changeset viewer.