Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2006, 2:55:02 PM (18 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: fog activate, cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc

    r8242 r8247  
    116116
    117117        lightMan = LightManager::getInstance();
     118        this->rainAmbient = lightMan->getAmbientColor();
    118119}
    119120
     
    163164        this->rainActivate = false;
    164165        this->emitter->setSystem(NULL);
     166
     167        // Stop Sound
    165168        this->soundSource.stop();
    166169
    167         lightMan->setAmbientColor(1,1,1);
     170        // Restore Light Ambient
     171        lightMan->setAmbientColor(this->rainAmbient, this->rainAmbient, this->rainAmbient);
    168172}
    169173
     
    182186                float progress = this->localTimer / this->rainStartDuration;
    183187
    184                 // PRINTF(0)("Progress %f: \n", progress);
     188                // Dim Light
     189                lightMan->setAmbientColor(1.1 - progress, 1.1 - progress, 1.1 - progress);
    185190
    186191                // use alpha in color to fade in
Note: See TracChangeset for help on using the changeset viewer.