Changeset 6519 in orxonox.OLD for trunk/src/world_entities/skybox.cc
- Timestamp:
- Jan 18, 2006, 12:38:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/skybox.cc
r6512 r6519 81 81 this->material[i]->setAmbient(2.0, 2.0, 2.0); 82 82 83 this-> texture[i] = NULL;83 this->cubeTexture[i] = NULL; 84 84 } 85 85 this->setParentMode(PNODE_MOVEMENT); … … 166 166 const char* right, const char* front, const char* back) 167 167 { 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); 174 174 } 175 175 … … 177 177 { 178 178 glEnable(GL_TEXTURE_CUBE_MAP_ARB); 179 glEnable(GL_TEXTURE_2D); 179 180 glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP_ARB); 180 181 glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP_ARB); … … 188 189 { 189 190 glDisable(GL_TEXTURE_CUBE_MAP_ARB); 191 glDisable(GL_TEXTURE_2D); 190 192 glDisable(GL_TEXTURE_GEN_S); 191 193 glDisable(GL_TEXTURE_GEN_T);
Note: See TracChangeset
for help on using the changeset viewer.