Changeset 8269 in orxonox.OLD
- Timestamp:
- Jun 8, 2006, 4:42:16 PM (18 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.cc
r8266 r8269 232 232 this->billboard[3]->setAbsCoor(posX, this->mainPosY, posZ); 233 233 this->flashFrequency = this->mainFrequency + this->seedTime * (float)rand()/(float)RAND_MAX; 234 234 float w = this->width + this->seedWidth * (float)rand()/(float)RAND_MAX; 235 float h = this->height + this->seedHeight * (float)rand()/(float)RAND_MAX; 236 this->billboard[0]->setSize(w, h); 237 this->billboard[1]->setSize(w, h); 238 this->billboard[2]->setSize(w, h); 239 this->billboard[3]->setSize(w, h); 235 240 this->bNewCoordinate = false; 236 241 } -
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h
r8266 r8269 38 38 39 39 inline void setLighteningOption(const std::string& option) { if (option == "activate") this->lighteningActivate = true;} 40 inline void setFlashFrequency(float mainFrequency) { this->mainFrequency = mainFrequency; 41 this->flashFrequency = mainFrequency; } 40 inline void setFlashFrequency(float mainFrequency, float seedTime) { this->mainFrequency = mainFrequency; 41 this->flashFrequency = mainFrequency; 42 this->seedTime = seedTime; } 42 43 inline void setFlashConstTime(float flashConstTime) { this->flashConstTime = flashConstTime; } 43 44 inline void setFlashRisingTime(float flashRisingTime) { if(flashRisingTime > this->flashConstTime) … … 45 46 else 46 47 this->flashRisingTime = flashRisingTime; } 47 inline void setFlashSeed(float seedX, float seedZ, float seedTime) { this->seedX = seedX; 48 this->seedZ = seedZ; 49 this->seedTime = seedTime; } 48 inline void setFlashSeed(float seedX, float seedZ) { this->seedX = seedX; 49 this->seedZ = seedZ; } 50 50 51 51 void activateLightening() { this->activate(); }
Note: See TracChangeset
for help on using the changeset viewer.