Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

branches/atmospheric_engine:

File:
1 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  }
Note: See TracChangeset for help on using the changeset viewer.