Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2006, 4:07:09 PM (18 years ago)
Author:
amaechler
Message:

branches/moutnain_lake: lightning hacking, skycolor not working yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mountain_lake/src/lib/graphics/effects/lightning_effect.cc

    r8905 r8911  
    2828#include "shell_command.h"
    2929#include "light.h"
     30#include "cloud_effect.h"
    3031
    3132SHELL_COMMAND(activate, LightningEffect, activateLightning);
     
    198199        this->flashLight->setSpecularColor(1,1,1);
    199200
     201        CloudEffect::flashSky(0.02);
     202
    200203        // Play thunder sound
    201204        this->soundSource.play(this->thunderBuffer);
     
    216219    if( this->thunderBolt[3]->isVisible() && this->time > this->flashHoldTime) {
    217220        this->thunderBolt[3]->setVisibiliy(false);
     221
    218222        this->time = 0.0f;
    219223        this->flashLight->setDiffuseColor(0,0,0);
    220224        this->flashLight->setSpecularColor(0,0,0);
     225        CloudEffect::changeSkyColor(Vector(0,0,1), 0.02);
    221226
    222227        this->newCoordinates();
Note: See TracChangeset for help on using the changeset viewer.