Changeset 10392 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 26, 2007, 7:33:33 PM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/planet.cc
r10391 r10392 47 47 this->rotSpeedPlanet = 0.0; 48 48 this->rotSpeedCloud = 0.0; 49 this->bClouds = false; 49 50 50 51 //this->materialPlanet->setIllum(20); … … 57 58 this->setModel(model); 58 59 59 this->cloudModel = new PrimitiveModel(PRIM_SPHERE, this->size + 10, 50);60 this->cloudModel = new PrimitiveModel(PRIM_SPHERE, this->size + 2, 50); 60 61 } 61 62 … … 105 106 { 106 107 this->materialCloud.setDiffuseMap(textureName); 108 this->bClouds = true; 107 109 } 108 110 … … 140 142 WorldEntity::draw(); 141 143 142 this->materialCloud.select(); 143 WorldEntity::draw(this->cloudModel); 144 144 if( this->bClouds) 145 { 146 glDisable(GL_LIGHTING); 147 this->materialCloud.select(); 148 WorldEntity::draw(this->cloudModel); 149 glEnable(GL_LIGHTING); 150 } 145 151 } 146 152 -
trunk/src/world_entities/planet.h
r10391 r10392 44 44 Model* cloudModel; //!< the model for the cloud 45 45 46 bool bClouds; //!< true if there are clouds defined 46 47 float rotSpeedCloud; //! cloud rotation speed 47 48 float rotSpeedPlanet; //! planet rotation speed
Note: See TracChangeset
for help on using the changeset viewer.