Changeset 8911 in orxonox.OLD for branches/mountain_lake/src/lib/graphics/effects/lightning_effect.cc
- Timestamp:
- Jun 29, 2006, 4:07:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mountain_lake/src/lib/graphics/effects/lightning_effect.cc
r8905 r8911 28 28 #include "shell_command.h" 29 29 #include "light.h" 30 #include "cloud_effect.h" 30 31 31 32 SHELL_COMMAND(activate, LightningEffect, activateLightning); … … 198 199 this->flashLight->setSpecularColor(1,1,1); 199 200 201 CloudEffect::flashSky(0.02); 202 200 203 // Play thunder sound 201 204 this->soundSource.play(this->thunderBuffer); … … 216 219 if( this->thunderBolt[3]->isVisible() && this->time > this->flashHoldTime) { 217 220 this->thunderBolt[3]->setVisibiliy(false); 221 218 222 this->time = 0.0f; 219 223 this->flashLight->setDiffuseColor(0,0,0); 220 224 this->flashLight->setSpecularColor(0,0,0); 225 CloudEffect::changeSkyColor(Vector(0,0,1), 0.02); 221 226 222 227 this->newCoordinates();
Note: See TracChangeset
for help on using the changeset viewer.