Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6519 in orxonox.OLD for trunk/src/world_entities/skybox.cc


Ignore:
Timestamp:
Jan 18, 2006, 12:38:19 AM (18 years ago)
Author:
bensch
Message:

trunk: better smoother water

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/skybox.cc

    r6512 r6519  
    8181      this->material[i]->setAmbient(2.0, 2.0, 2.0);
    8282
    83       this->texture[i] = NULL;
     83      this->cubeTexture[i] = NULL;
    8484    }
    8585  this->setParentMode(PNODE_MOVEMENT);
     
    166166                                  const char* right, const char* front, const char* back)
    167167{
    168   this->texture[0] = new Texture (top, GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB);
    169   this->texture[1] = new Texture (bottom, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB);
    170   this->texture[2] = new Texture (left, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB);
    171   this->texture[3] = new Texture (right, GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB);
    172   this->texture[4] = new Texture (front, GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB);
    173   this->texture[5] = new Texture (back, GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB);
     168  this->cubeTexture[0] = new Texture (top, GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB);
     169  this->cubeTexture[1] = new Texture (bottom, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB);
     170  this->cubeTexture[2] = new Texture (left, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB);
     171  this->cubeTexture[3] = new Texture (right, GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB);
     172  this->cubeTexture[4] = new Texture (front, GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB);
     173  this->cubeTexture[5] = new Texture (back, GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB);
    174174}
    175175
     
    177177{
    178178  glEnable(GL_TEXTURE_CUBE_MAP_ARB);
     179  glEnable(GL_TEXTURE_2D);
    179180  glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP_ARB);
    180181  glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP_ARB);
     
    188189{
    189190  glDisable(GL_TEXTURE_CUBE_MAP_ARB);
     191  glDisable(GL_TEXTURE_2D);
    190192  glDisable(GL_TEXTURE_GEN_S);
    191193  glDisable(GL_TEXTURE_GEN_T);
Note: See TracChangeset for help on using the changeset viewer.