Changeset 8241 in orxonox.OLD for branches/water/src/world_entities
- Timestamp:
- Jun 8, 2006, 1:58:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/world_entities/environments/mapped_water.cc
r8235 r8241 79 79 unsigned int* pTextureReflection = new unsigned int [this->textureSize * this->textureSize * channels]; 80 80 memset(pTextureReflection, 0, this->textureSize * this->textureSize * channels * sizeof(unsigned int)); 81 mat.select();81 //mat.select(); 82 82 glBindTexture(GL_TEXTURE_2D, this->mat.getDiffuseTexture(0)); 83 83 glTexImage2D(GL_TEXTURE_2D, 0, channels, this->textureSize, this->textureSize, 0, type, GL_UNSIGNED_INT, pTextureReflection); 84 85 84 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); 85 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); 86 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); 87 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); 88 89 unsigned int* pTextureRefraction = new unsigned int [this->textureSize * this->textureSize * channels]; 90 memset(pTextureRefraction, 0, this->textureSize * this->textureSize * channels * sizeof(unsigned int)); 91 glBindTexture(GL_TEXTURE_2D, this->mat.getDiffuseTexture(1)); 86 92 87 93
Note: See TracChangeset
for help on using the changeset viewer.