Changeset 6860 in orxonox.OLD for trunk/src/world_entities/environments
- Timestamp:
- Jan 30, 2006, 5:24:31 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/water.cc
r6815 r6860 183 183 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 184 184 185 if (State::getSkyBox()) 186 { 187 glBindTexture(GL_TEXTURE_2D, State::getSkyBox()->getTexture(SKY_RIGHT)); 188 glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 189 190 glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); 191 glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); 192 glEnable(GL_TEXTURE_GEN_S); 193 glEnable(GL_TEXTURE_GEN_T); 194 } 195 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 185 // if (State::getSkyBox()) 186 // { 187 // glBindTexture(GL_TEXTURE_2D, State::getSkyBox()->getTexture(SKY_RIGHT)); 188 // glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 189 // 190 // glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); 191 // glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); 192 // glEnable(GL_TEXTURE_GEN_S); 193 // glEnable(GL_TEXTURE_GEN_T); 194 // } 195 // glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 196 197 SkyBox::enableCubeMap(); 196 198 this->grid->draw(); 197 199 // this->waterShader->activateShader(); … … 199 201 //Shader::deactivateShader(); 200 202 201 //SkyBox::disableCubeMap();202 glDisable(GL_TEXTURE_GEN_S);203 glDisable(GL_TEXTURE_GEN_T);203 SkyBox::disableCubeMap(); 204 // glDisable(GL_TEXTURE_GEN_S); 205 // glDisable(GL_TEXTURE_GEN_T); 204 206 205 207 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.