Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7993 in orxonox.OLD for branches/water


Ignore:
Timestamp:
May 30, 2006, 9:36:50 PM (19 years ago)
Author:
stefalie
Message:

branches/water: 5 textures

File:
1 edited

Legend:

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

    r7986 r7993  
    4848  mat.setDiffuseMap("pictures/dudvmap.bmp", GL_TEXTURE_2D, 3);
    4949  // set up depth texture
    50   //mat.setDiffuseMap("pictures/sky-replace.jpg", GL_TEXTURE_2D, 2);
     50  mat.setDiffuseMap("pictures/sky-replace.jpg", GL_TEXTURE_2D, 4);
    5151
    5252
     
    106106  Shader::Uniform(shader, "dudvMap").set(3);
    107107  // Set the variable "depthMap" to correspond to the fifth texture unit
    108   //Shader::Uniform(shader, "depthMap").set(4);
     108  Shader::Uniform(shader, "depthMap").set(4);
    109109  // Give the variable "waterColor" a blue color
    110110  Shader::Uniform(shader, "waterColor").set(0.1f, 0.2f, 0.4f, 1.0f);
Note: See TracChangeset for help on using the changeset viewer.