Changeset 111 for trunk/VUT/Ogre
- Timestamp:
- 05/24/05 17:55:14 (20 years ago)
- Location:
- trunk/VUT/Ogre
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h
r103 r111 82 82 */ 83 83 void SetOnlyShadowCasters(bool onlyShadowCasters); 84 /** see set */ 85 bool GetOnlyShadowCasters(); 84 86 85 87 protected: -
trunk/VUT/Ogre/src/OgrePlatformHierarchyInterface.cpp
r103 r111 177 177 { 178 178 mOnlyShadowCasters = onlyShadowCasters; 179 mDummy = mOnlyShadowCasters ; 180 } 181 //----------------------------------------------------------------------- 182 bool PlatformHierarchyInterface::GetOnlyShadowCasters() 183 { 184 return mOnlyShadowCasters; 179 185 } 180 186 } // namespace Ogre -
trunk/VUT/Ogre/src/OgreSceneContentGenerator.cpp
r110 r111 72 72 createChildSceneNode(String(name) + "Node", position); 73 73 74 //ent->setCastShadows(false); 74 75 currentObject->attachObject(ent); 75 76 currentObject->setScale(mScale); -
trunk/VUT/Ogre/src/OgreTerrainContentGenerator.cpp
r110 r111 76 76 if (mRayQueryExecutor->executeRayQuery(&queryResult, position, Vector3::NEGATIVE_UNIT_Y)) 77 77 { 78 queryResult.y += mOffset;79 78 // reject if height is too high 80 79 if (queryResult.y < mMaxPos.y) 81 80 { 81 // add offset so object is over terrain 82 queryResult.y += mOffset; 83 82 84 return SceneContentGenerator::GenerateSceneObject(queryResult, rotation, objName); 83 85 } -
trunk/VUT/Ogre/src/OgreVisibilitySceneManager.cpp
r103 r111 25 25 void VisibilitySceneManager::_findVisibleObjects(Camera* cam, bool onlyShadowCasters) 26 26 { 27 mHierarchyInterface->SetOnlyShadowCasters(onlyShadowCasters); 27 28 // does nothing if hierarchical culling is used => 28 29 // we interleave identification and rendering of objects -
trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp
r107 r111 85 85 void VisibilityTerrainSceneManager::_renderVisibleObjects() 86 86 { 87 87 88 if (!mShowVisualization) 88 89 {
Note: See TracChangeset
for help on using the changeset viewer.