- Timestamp:
- May 30, 2006, 9:36:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/world_entities/environments/mapped_water.cc
r7986 r7993 48 48 mat.setDiffuseMap("pictures/dudvmap.bmp", GL_TEXTURE_2D, 3); 49 49 // 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); 51 51 52 52 … … 106 106 Shader::Uniform(shader, "dudvMap").set(3); 107 107 // 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); 109 109 // Give the variable "waterColor" a blue color 110 110 Shader::Uniform(shader, "waterColor").set(0.1f, 0.2f, 0.4f, 1.0f);
Note: See TracChangeset
for help on using the changeset viewer.