Changeset 8587 in orxonox.OLD for branches/water/src/world_entities/environments
- Timestamp:
- Jun 19, 2006, 5:07:22 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/world_entities/environments/mapped_water.cc
r8586 r8587 35 35 this->loadParams(root); 36 36 37 38 this->textureSize = 512; 37 /// loads the textures 38 // sets parameters for the textures 39 this->textureSize = 512; 39 40 unsigned int channels = 32; 40 41 GLenum type = GL_RGBA; 41 /// loads the textures42 42 // set up refleciton texture 43 //Texture reflTex(GL_TEXTURE_2D, this->textureSize, this->textureSize, channels, type);44 //mat.setDiffuseMap(reflTex, 0);45 mat.setDiffuseMap("pictures/refl.bmp", GL_TEXTURE_2D, 0);43 Texture reflTex(GL_TEXTURE_2D, this->textureSize, this->textureSize, channels, type); 44 mat.setDiffuseMap(reflTex, 0); 45 //mat.setDiffuseMap("pictures/refl.bmp", GL_TEXTURE_2D, 0); 46 46 // load refraction texture 47 //Texture refrTex(GL_TEXTURE_2D, this->textureSize, this->textureSize, channels, type);48 //mat.setDiffuseMap(refrTex, 1);49 mat.setDiffuseMap("pictures/refr.bmp", GL_TEXTURE_2D, 1);47 Texture refrTex(GL_TEXTURE_2D, this->textureSize, this->textureSize, channels, type); 48 mat.setDiffuseMap(refrTex, 1); 49 //mat.setDiffuseMap("pictures/refr.bmp", GL_TEXTURE_2D, 1); 50 50 // load normal map 51 51 mat.setDiffuseMap("pictures/normalmap.bmp", GL_TEXTURE_2D, 2); … … 194 194 cam_uni->set(pos.x, pos.y, pos.z, 1.0f); 195 195 196 glDisable(GL_BLEND); 197 196 198 glBegin(GL_QUADS); 197 199 // The back left vertice for the water
Note: See TracChangeset
for help on using the changeset viewer.