Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6860 in orxonox.OLD for trunk/src/world_entities/environments


Ignore:
Timestamp:
Jan 30, 2006, 5:24:31 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: hmm… do not know

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/environments/water.cc

    r6815 r6860  
    183183    glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    184184
    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();
    196198    this->grid->draw();
    197199    // this->waterShader->activateShader();
     
    199201    //Shader::deactivateShader();
    200202
    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);
    204206
    205207    glPopMatrix();
Note: See TracChangeset for help on using the changeset viewer.