Changeset 8480 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc
- Timestamp:
- Jun 15, 2006, 4:57:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc
r8471 r8480 39 39 40 40 /* TODO: 41 - preCaching42 41 - test multiple rain emitters 43 42 - Think about what happens with building poss. to hang movewithcam off … … 69 68 if(rainActivate) { 70 69 this->activate(); 71 RainEffect::rainParticles->precache((int)this->rainLife );70 RainEffect::rainParticles->precache((int)this->rainLife * 5); // TODO: Figure out the correct value 72 71 } 73 72 } … … 155 154 this->emitter->setSpread(this->rainWindForce / 50, 0.2); 156 155 157 this->soundSource.loop(this->rainBuffer, this->soundRainVolume); 156 this->soundSource.play(this->rainBuffer, this->soundRainVolume, true); 157 158 158 if (this->rainWindForce != 0) 159 this->soundSource. loop(this->windBuffer, 0.1f * this->rainWindForce);159 this->soundSource.play(this->windBuffer, 0.1f * this->rainWindForce, true); 160 160 161 161 if (this->rainFadeInDuration == 0)
Note: See TracChangeset
for help on using the changeset viewer.