- Timestamp:
- Jun 26, 2006, 2:45:28 PM (19 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.cc
r8787 r8789 31 31 Vector CloudEffect::cloudColor; 32 32 Vector CloudEffect::skyColor; 33 Vector CloudEffect::newCloudColor; 34 Vector CloudEffect::newSkyColor; 33 35 34 36 using namespace std; … … 76 78 this->skyColor = Vector(0.0f, 0.0f, 0.8f); 77 79 this->cloudColor = Vector(0.8f, 0.8f, 0.8f); 80 this->newSkyColor = this->skyColor; 81 this->newCloudColor = this->cloudColor; 82 this->fadeTime = 3; 78 83 79 84 this->noise3DTexSize = 128; … … 170 175 this->shader->activateShader(); 171 176 this->offset->set(0.0f, 0.0f, offsetZ); 172 this->cloudcolor->set(this->cloudColor.x, this->cloudColor.y, this->cloudColor.z); 173 this->skycolor->set(this->skyColor.x, this->skyColor.y, this->skyColor.z); 177 178 //if(cloudColor != newCloudColor) 179 //{ 180 // TODO: fade from cloudColor to newCloudColor 181 cloudColor = newCloudColor; 182 this->cloudcolor->set(this->cloudColor.x, this->cloudColor.y, this->cloudColor.z); 183 //} 184 //if(cloudColor != newCloudColor) 185 //{ 186 // TODO: fade from skyColor to newSkyColor 187 skyColor = newSkyColor; 188 this->skycolor->set(this->skyColor.x, this->skyColor.y, this->skyColor.z); 189 //} 190 174 191 this->shader->deactivateShader(); 175 192 } … … 179 196 void CloudEffect::changeSkyColor(Vector color) 180 197 { 181 skyColor = color;198 newSkyColor = color; 182 199 } 183 200 … … 185 202 void CloudEffect::changeCloudColor(Vector color) 186 203 { 187 cloudColor = color;204 newCloudColor = color; 188 205 } 189 206 -
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
r8787 r8789 101 101 bool cloudActivate; 102 102 float animationSpeed; 103 float fadeTime; 104 105 static Vector newSkyColor; 106 static Vector newCloudColor; 103 107 104 108 // Material cloudMaterial;
Note: See TracChangeset
for help on using the changeset viewer.