Changeset 8630 in orxonox.OLD for branches/water/src/world_entities/environments/mapped_water.cc
- Timestamp:
- Jun 20, 2006, 2:34:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/world_entities/environments/mapped_water.cc
r8628 r8630 234 234 // to our texture map size, then render the current scene our camera 235 235 // is looking at to the already allocated texture unit. Since this 236 // is a reflection of the top of the water surface we use clipping 236 // is a reflection of the top of the water surface we use clipping 237 237 // planes to only render the top of the world as a reflection. If 238 238 // we are below the water we don't flip the reflection but just use … … 318 318 if(pos.y > waterPos.y) 319 319 { 320 double plane[4] = {0, -1, 0, waterPos.y}; 320 double plane[4] = {0, -1, 0, waterPos.y}; 321 321 glClipPlane(GL_CLIP_PLANE0, plane); 322 323 322 } 324 323 // If the camera is below the water, only render the data above the water … … 326 325 { 327 326 glCullFace(GL_FRONT); 328 double plane[4] = {0, 1, 0, -waterPos.y}; 327 double plane[4] = {0, 1, 0, -waterPos.y}; 329 328 glClipPlane(GL_CLIP_PLANE0, plane); 330 329 }
Note: See TracChangeset
for help on using the changeset viewer.