Changeset 6523 in orxonox.OLD for trunk/src/world_entities/environments
- Timestamp:
- Jan 18, 2006, 2:54:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/water.cc
r6522 r6523 120 120 void Water::draw() const 121 121 { 122 SkyBox::enableCubeMap(); 123 124 // this->waterShader->activateShader(); 122 //SkyBox::enableCubeMap(); 123 124 glBindTexture(GL_TEXTURE_2D, 15); 125 glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 126 127 glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); 128 glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); 129 glEnable(GL_TEXTURE_GEN_S); 130 glEnable(GL_TEXTURE_GEN_T); 131 132 glEnable(GL_BLEND); 133 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 134 // this->waterShader->activateShader(); 125 135 // this->waterMaterial->select(); 126 136 WorldEntity::draw();
Note: See TracChangeset
for help on using the changeset viewer.