- Timestamp:
- 05/06/06 20:30:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/Ogre1.2/PlugIns/OctreeSceneManager/src/OgreTerrainRenderable.cpp
r921 r922 178 178 179 179 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 180 for (int i = 0; i < MAX_RENDERLEVEL_INDEX; ++i )180 for (int i = 0; i < MAX_RENDERLEVEL_INDEX; ++i ) 181 181 { 182 182 mRenderLevel[i] = 1; … … 981 981 { 982 982 unsigned int stitchFlags = 0; 983 984 if ( mNeighbors[ EAST ] != 0 && mNeighbors[ EAST ] -> mRenderLevel > mRenderLevel ) 983 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 984 if ( mNeighbors[ EAST ] != 0 && mNeighbors[ EAST ] -> getRenderLevel() > getRenderLevel() ) 985 { 986 stitchFlags |= STITCH_EAST; 987 stitchFlags |= 988 (mNeighbors[ EAST ] -> getRenderLevel() - getRenderLevel()) << STITCH_EAST_SHIFT; 989 } 990 991 if ( mNeighbors[ WEST ] != 0 && mNeighbors[ WEST ] -> getRenderLevel() > getRenderLevel() ) 992 { 993 stitchFlags |= STITCH_WEST; 994 stitchFlags |= 995 (mNeighbors[ WEST ] -> getRenderLevel() - getRenderLevel()) << STITCH_WEST_SHIFT; 996 } 997 998 if ( mNeighbors[ NORTH ] != 0 && mNeighbors[ NORTH ] -> getRenderLevel() > getRenderLevel() ) 999 { 1000 stitchFlags |= STITCH_NORTH; 1001 stitchFlags |= 1002 (mNeighbors[ NORTH ] -> getRenderLevel() - getRenderLevel()) << STITCH_NORTH_SHIFT; 1003 } 1004 1005 if ( mNeighbors[ SOUTH ] != 0 && mNeighbors[ SOUTH ] -> getRenderLevel() > getRenderLevel() ) 1006 { 1007 stitchFlags |= STITCH_SOUTH; 1008 stitchFlags |= 1009 (mNeighbors[ SOUTH ] -> getRenderLevel() - getRenderLevel()) << STITCH_SOUTH_SHIFT; 1010 } 1011 #else 1012 if ( mNeighbors[ EAST ] != 0 && mNeighbors[ EAST ] -> mRenderLevel > mRenderLevel ) 985 1013 { 986 1014 stitchFlags |= STITCH_EAST; … … 1009 1037 (mNeighbors[ SOUTH ] -> mRenderLevel - mRenderLevel) << STITCH_SOUTH_SHIFT; 1010 1038 } 1011 1039 #endif // GTP_VISIBILITY_MODIFIED_OGRE 1012 1040 // Check preexisting 1013 1041 LevelArray& levelIndex = mSceneManager->_getLevelIndex();
Note: See TracChangeset
for help on using the changeset viewer.