Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8263 in orxonox.OLD


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

water: refl n refr textures get darker every renderpath

File:
1 edited

Legend:

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

    r8260 r8263  
    240240  // In order to line up the reflection nicely with the world we have to translate
    241241  // the world to the position of our reflected surface, multiplied by two.
    242   //glEnable(GL_CLIP_PLANE0);
     242  glEnable(GL_CLIP_PLANE0);
    243243  Vector pos = State::getCameraNode()->getAbsCoor();
    244244  //pos.debug();
     
    251251
    252252    // Since the world is updside down we need to change the culling to FRONT
    253     //glCullFace(GL_FRONT);
     253    glCullFace(GL_FRONT);
    254254
    255255    // Set our plane equation and turn clipping on
    256256    double plane[4] = {0.0, 1.0, 0.0, -waterHeight};
    257     //glClipPlane(GL_CLIP_PLANE0, plane);
     257    glClipPlane(GL_CLIP_PLANE0, plane);
    258258  }
    259259  else
Note: See TracChangeset for help on using the changeset viewer.