Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8074 in orxonox.OLD


Ignore:
Timestamp:
Jun 1, 2006, 3:31:19 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: rain influences the light

Location:
branches/atmospheric_engine/src/lib/graphics/effects
Files:
2 edited

Legend:

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

    r8052 r8074  
    2525#include "plane_emitter.h"
    2626#include "shell_command.h"
     27#include "light.h"
    2728
    2829#include "parser/tinyxml/tinyxml.h"
     
    107108
    108109        this->emitter = new PlaneEmitter(this->rainSize);
     110 
     111  lightMan = LightManager::getInstance();
    109112}
    110113
     
    142145        if (this->rainWindForce > 0)
    143146                this->soundSource.loop(this->windBuffer, 0.5f);
     147 
     148  lightMan->setAmbientColor(.1,.1,.1);
    144149}
    145150
     
    151156
    152157        this->soundSource.stop();
     158 
     159  lightMan->setAmbientColor(1,1,1);
    153160}
    154161
  • branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h

    r8023 r8074  
    1414class SparkParticles;
    1515class PlainEmitter;
     16class LightManager;
    1617
    1718#include "weather_effect.h"
     
    6667                OrxSound::SoundBuffer*                  rainBuffer;
    6768                OrxSound::SoundBuffer*                  windBuffer;
     69   
     70    LightManager* lightMan;
    6871};
    6972
Note: See TracChangeset for help on using the changeset viewer.