Changeset 8837 in orxonox.OLD for branches/mountain_lake/src/lib/graphics/effects/rain_effect.cc
- Timestamp:
- Jun 27, 2006, 5:26:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mountain_lake/src/lib/graphics/effects/rain_effect.cc
r8793 r8837 103 103 this->rainFadeOutDuration = 0; 104 104 105 this->cloudColor = Vector(0. 8f, 0.8f, 0.8f);105 this->cloudColor = Vector(0.6f, 0.6f, 0.6f); 106 106 this->skyColor = Vector(0.0f, 0.0f, 0.0f); 107 107 … … 180 180 if (this->rainWindForce != 0) 181 181 this->soundSource.play(this->windBuffer, 0.1f * this->rainWindForce, true); 182 183 if (this->rainFadeInDuration == 0)184 lightMan->setAmbientColor(.1,.1,.1);185 182 186 183 // Change the cloudcolor,skycolor 187 184 this->oldCloudColor = CloudEffect::cloudColor; 188 185 this->oldSkyColor = CloudEffect::skyColor; 189 CloudEffect::changeCloudColor(this->cloudColor );190 CloudEffect::changeSkyColor(this->skyColor );186 CloudEffect::changeCloudColor(this->cloudColor, this->rainFadeInDuration); 187 CloudEffect::changeSkyColor(this->skyColor, this->rainFadeInDuration); 191 188 } 192 189 … … 207 204 lightMan->setAmbientColor(this->rainAmbient, this->rainAmbient, this->rainAmbient); 208 205 209 CloudEffect::changeCloudColor(this->oldCloudColor );210 CloudEffect::changeSkyColor(this->oldSkyColor );206 CloudEffect::changeCloudColor(this->oldCloudColor, this->rainFadeOutDuration); 207 CloudEffect::changeSkyColor(this->oldSkyColor, this->rainFadeOutDuration); 211 208 } 212 209 … … 291 288 292 289 if (!this->rainFadeInDuration > 0) 293 this->rainFadeInDuration = 20;290 this->rainFadeInDuration = 10; 294 291 295 292 this->localTimer = 0; … … 308 305 309 306 if (!this->rainFadeOutDuration > 0) 310 this->rainFadeOutDuration = 20;307 this->rainFadeOutDuration = 10; 311 308 312 309 this->localTimer = 0;
Note: See TracChangeset
for help on using the changeset viewer.