Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2006, 4:42:16 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine:

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  
    232232    this->billboard[3]->setAbsCoor(posX, this->mainPosY, posZ);
    233233    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);
    235240    this->bNewCoordinate = false;
    236241  }
  • branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h

    r8266 r8269  
    3838   
    3939    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; }
    4243    inline void setFlashConstTime(float flashConstTime) { this->flashConstTime = flashConstTime; }
    4344    inline void setFlashRisingTime(float flashRisingTime) { if(flashRisingTime > this->flashConstTime)
     
    4546                                                                                      else
    4647                                                                                        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; }
    5050
    5151    void activateLightening() { this->activate(); }
Note: See TracChangeset for help on using the changeset viewer.