Changeset 1232 for GTP/trunk/Lib/Vis/OnlineCullingCHC
- Timestamp:
- 08/19/06 13:48:51 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp
r1221 r1232 1109 1109 } 1110 1110 //----------------------------------------------------------------------- 1111 const Pass *KdTreeSceneManager::_setPass( Pass* pass, bool evenIfSuppressed)1111 const Pass *KdTreeSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 1112 1112 { 1113 1113 if (mRenderMethod == KdTree::KDRM_INTERNAL) … … 1122 1122 const bool useDepthPass = 1123 1123 (mIsDepthPassPhase && !mHierarchyInterface->IsBoundingBoxQuery()); 1124 1125 Pass *usedPass = useDepthPass ? mDepthPass : pass;1126 1127 1124 1128 1125 const IlluminationRenderStage savedStage = mIlluminationStage; … … 1158 1155 } 1159 1156 1157 const Pass *usedPass = useDepthPass ? mDepthPass : pass; 1158 1160 1159 // save old depth write: needed for item buffer 1161 1160 const bool IsDepthWrite = usedPass->getDepthWriteEnabled(); … … 1164 1163 if (!mEnableDepthWrite) 1165 1164 { 1166 usedPass->setDepthWriteEnabled(false);1165 // usedPass->setDepthWriteEnabled(false); 1167 1166 } 1168 1167 //else if (mIsItemBufferPass) {usedPass = mItemBufferPass;} … … 1176 1175 if (!mEnableDepthWrite) 1177 1176 { 1178 usedPass->setDepthWriteEnabled(IsDepthWrite);1177 // usedPass->setDepthWriteEnabled(IsDepthWrite); 1179 1178 } 1180 1179 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1221 r1232 207 207 } 208 208 //----------------------------------------------------------------------- 209 const Pass *OcclusionCullingSceneManager::_setPass( Pass* pass, bool evenIfSuppressed)209 const Pass *OcclusionCullingSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 210 210 { 211 211 if (NORMAL_RENDER_HACK) … … 220 220 const bool useDepthPass = 221 221 (mIsDepthPassPhase && !mHierarchyInterface->IsBoundingBoxQuery()); 222 223 Pass *usedPass = useDepthPass ? mDepthPass : pass;224 225 222 226 223 const IlluminationRenderStage savedStage = mIlluminationStage; … … 256 253 } 257 254 255 const Pass *usedPass = useDepthPass ? mDepthPass : pass; 256 258 257 // save old depth write: needed for item buffer 259 258 const bool IsDepthWrite = usedPass->getDepthWriteEnabled(); … … 262 261 if (!mEnableDepthWrite) 263 262 { 264 usedPass->setDepthWriteEnabled(false);263 //usedPass->setDepthWriteEnabled(false); 265 264 } 266 265 //else if (mIsItemBufferPass) {usedPass = mItemBufferPass;} … … 274 273 if (!mEnableDepthWrite) 275 274 { 276 usedPass->setDepthWriteEnabled(IsDepthWrite);275 //usedPass->setDepthWriteEnabled(IsDepthWrite); 277 276 } 278 277 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/GtpVisibility.vcproj
r1226 r1232 128 128 </File> 129 129 <File 130 RelativePath="..\include\QueryManager.h">131 </File>132 <File133 130 RelativePath="..\src\StopAndWaitCullingManager.cpp"> 134 131 </File> … … 175 172 </File> 176 173 <File 174 RelativePath="..\include\QueryManager.h"> 175 </File> 176 <File 177 177 RelativePath="..\include\StopAndWaitCullingManager.h"> 178 178 </File>
Note: See TracChangeset
for help on using the changeset viewer.