Changeset 6511 in orxonox.OLD for branches/network/src/world_entities
- Timestamp:
- Jan 17, 2006, 2:03:02 AM (19 years ago)
- Location:
- branches/network/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/skybox.cc
r6500 r6511 72 72 this->toList(OM_ENVIRON_NOTICK); 73 73 this->size = 100.0; 74 this->textureSize = 1024.0f; 74 75 75 76 for (int i = 0; i < 6; i++) … … 205 206 } 206 207 208 209 210 void SkyBox::draw() 211 { 212 glPushAttrib(GL_LIGHTING_BIT); 213 glDisable(GL_LIGHTING); 214 WorldEntity::draw(); 215 // glEnable(GL_LIGHTING); 216 glPopAttrib(); 217 218 } 219 220 207 221 /** 208 222 * rebuilds the SkyBox … … 223 237 model->addVertex (0.5*size, -0.5*size, -0.5*size); 224 238 225 model->addVertexTexture (0.0, 1.0); 226 model->addVertexTexture (1.0, 1.0); 227 model->addVertexTexture (1.0, 0.0); 228 model->addVertexTexture (0.0, 0.0); 239 // model->addVertexTexture (0.0, 1.0); 240 // model->addVertexTexture (1.0, 1.0); 241 // model->addVertexTexture (1.0, 0.0); 242 // model->addVertexTexture (0.0, 0.0); 243 244 model->addVertexTexture (1.0/this->textureSize, (this->textureSize - 1.0)/this->textureSize); 245 model->addVertexTexture ((this->textureSize - 1.0)/this->textureSize, (this->textureSize - 1.0)/this->textureSize); 246 model->addVertexTexture ((this->textureSize - 1.0)/this->textureSize, 1.0/this->textureSize); 247 model->addVertexTexture (1.0/this->textureSize, 1.0/this->textureSize); 248 229 249 230 250 model->addVertexNormal (0.0, 0.0, 1.0); -
branches/network/src/world_entities/skybox.h
r6470 r6511 33 33 void postInit(); 34 34 35 virtual void draw(); 35 36 36 37 void setSize(float size); … … 60 61 61 62 float size; //!< Size of the SkyBox. This should match the frustum maximum range. 63 float textureSize; //!< this is the length of a texture (assumes a square texture) 62 64 char* textureName; //!< Name of the Texture 63 65
Note: See TracChangeset
for help on using the changeset viewer.