Changeset 148 for trunk/VUT/Ogre/src
- Timestamp:
- 06/23/05 00:56:37 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp
r147 r148 223 223 else 224 224 { 225 // if not the shadow passwe interleave identification225 // for hierarchical culling, we interleave identification 226 226 // and rendering of objects in _renderVisibibleObjects 227 228 // only for the shadow pass we use standard rendering 227 229 if (mShadowTechnique == SHADOWTYPE_TEXTURE_MODULATIVE && 228 230 mIlluminationStage == IRS_RENDER_TO_TEXTURE) … … 242 244 void VisibilityTerrainSceneManager::_renderVisibleObjects() 243 245 { 244 // visualization: apply standard rendering 245 if (mShowVisualization) 246 // visualization or shadow pass: apply standard rendering 247 if (mShowVisualization || (mShadowTechnique == SHADOWTYPE_TEXTURE_MODULATIVE && 248 mIlluminationStage == IRS_RENDER_TO_TEXTURE)) 246 249 { 247 250 IlluminationRenderStage savedStage = mIlluminationStage; 248 251 249 // disable illumination stage so we have no shadow rendering 250 mIlluminationStage = IRS_NONE; 251 252 if (mShowVisualization) 253 // disable illumination stage so we have no shadows in visualization 254 mIlluminationStage = IRS_NONE; 255 256 // standard rendering for shadow maps because of performance 252 257 TerrainSceneManager::_renderVisibleObjects(); 253 258 254 259 mIlluminationStage = savedStage; 255 260 } 256 // normal rendering for shadow maps because of performance 257 else if (mShadowTechnique == SHADOWTYPE_TEXTURE_MODULATIVE && 258 mIlluminationStage == IRS_RENDER_TO_TEXTURE) 259 { 260 TerrainSceneManager::_renderVisibleObjects(); 261 } 262 else 261 else // the hierarchical culling algorithm 263 262 { 264 263 //-- hierarchical culling
Note: See TracChangeset
for help on using the changeset viewer.