Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8260 in orxonox.OLD for branches/water/src/world_entities


Ignore:
Timestamp:
Jun 8, 2006, 4:03:25 PM (18 years ago)
Author:
stefalie
Message:

water: …

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/water/src/world_entities/environments/mapped_water.cc

    r8249 r8260  
    242242  //glEnable(GL_CLIP_PLANE0);
    243243  Vector pos = State::getCameraNode()->getAbsCoor();
     244  //pos.debug();
     245  //PRINTF(0)("waterheight: %f\n", waterHeight);
    244246  if(pos.y > waterHeight)
    245247  {
     
    260262    // but just render it clipped so only the top is drawn.
    261263    double plane[4] = {0.0, 1.0, 0.0, waterHeight};
    262     //glClipPlane(GL_CLIP_PLANE0, plane);
     264    glClipPlane(GL_CLIP_PLANE0, plane);
    263265  }
    264266}
     
    268270{
    269271  //glDisable(GL_CLIP_PLANE0);
    270   //glCullFace(GL_BACK);
     272  glCullFace(GL_BACK);
    271273
    272274  //mat.select();
     
    299301  //glEnable(GL_CLIP_PLANE0);
    300302  Vector pos = State::getCameraNode()->getAbsCoor();
     303  //pos.debug();
     304  //PRINTF(0)("waterheight: %f\n", waterHeight);
    301305  if(pos.y > waterHeight)
    302306  {
     
    306310
    307311    // Since the world is updside down we need to change the culling to FRONT
    308     //glCullFace(GL_FRONT);
     312    glCullFace(GL_FRONT);
    309313
    310314    // Set our plane equation and turn clipping on
     
    360364{
    361365  //glDisable(GL_CLIP_PLANE0);
    362   //glCullFace(GL_BACK);
     366  glCullFace(GL_BACK);
    363367
    364368
Note: See TracChangeset for help on using the changeset viewer.