Changeset 8263 in orxonox.OLD for branches/water/src/world_entities
- Timestamp:
- Jun 8, 2006, 4:08:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/world_entities/environments/mapped_water.cc
r8260 r8263 240 240 // In order to line up the reflection nicely with the world we have to translate 241 241 // the world to the position of our reflected surface, multiplied by two. 242 //glEnable(GL_CLIP_PLANE0);242 glEnable(GL_CLIP_PLANE0); 243 243 Vector pos = State::getCameraNode()->getAbsCoor(); 244 244 //pos.debug(); … … 251 251 252 252 // Since the world is updside down we need to change the culling to FRONT 253 //glCullFace(GL_FRONT);253 glCullFace(GL_FRONT); 254 254 255 255 // Set our plane equation and turn clipping on 256 256 double plane[4] = {0.0, 1.0, 0.0, -waterHeight}; 257 //glClipPlane(GL_CLIP_PLANE0, plane);257 glClipPlane(GL_CLIP_PLANE0, plane); 258 258 } 259 259 else
Note: See TracChangeset
for help on using the changeset viewer.