- Timestamp:
- Jun 1, 2006, 4:54:50 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.cc
r8079 r8084 63 63 64 64 gluQuadricTexture(this->sphereObj, GL_TRUE); 65 this->setRadius(2000.0); 65 gluQuadricOrientation(this->sphereObj, GLU_INSIDE); 66 67 68 this->setRadius(1900.0); 66 69 67 70 mover = 0.0f; 68 71 69 72 // Initializing default values 70 this->cloudSpeed = 2.0f;73 this->cloudSpeed = 1.0f; 71 74 this->cloudTexture = "pictures/sky/cloud1.jpg"; 72 75 } … … 87 90 88 91 this->cloudMaterial = new Material("Sky"); 89 // this->setTexture(this->cloudTexture);90 92 this->cloudMaterial->setIllum(3); 91 93 this->cloudMaterial->setAmbient(1.0, 1.0, 1.0); 92 93 94 this->cloudMaterial->setDiffuseMap(this->cloudTexture); 94 95 95 } 96 96 … … 105 105 -Load a texture, for now from an existing image, a cloud texture 106 106 -Blend / Overlay this with a blue sky like in the tutorial 107 -Make a skybox or whatever....108 107 -Animate it (for now move it along the sky) 109 108 */ … … 117 116 118 117 // Sky movement 119 glRotatef(mover, 1, 0, 0);118 glRotatef(mover, 0, 0, 1); 120 119 121 120 cloudMaterial->select();
Note: See TracChangeset
for help on using the changeset viewer.