Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8789 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 26, 2006, 2:45:28 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: activating rain effect changes the cloud- & skycolor

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

Legend:

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

    r8787 r8789  
    3131Vector  CloudEffect::cloudColor;
    3232Vector  CloudEffect::skyColor;
     33Vector  CloudEffect::newCloudColor;
     34Vector  CloudEffect::newSkyColor;
    3335
    3436using namespace std;
     
    7678  this->skyColor = Vector(0.0f, 0.0f, 0.8f);
    7779  this->cloudColor = Vector(0.8f, 0.8f, 0.8f);
     80  this->newSkyColor = this->skyColor;
     81  this->newCloudColor = this->cloudColor;
     82  this->fadeTime = 3;
    7883
    7984  this->noise3DTexSize = 128;
     
    170175    this->shader->activateShader();
    171176    this->offset->set(0.0f, 0.0f, offsetZ);
    172     this->cloudcolor->set(this->cloudColor.x, this->cloudColor.y, this->cloudColor.z);
    173     this->skycolor->set(this->skyColor.x, this->skyColor.y, this->skyColor.z);
     177   
     178    //if(cloudColor != newCloudColor)
     179    //{
     180      // TODO: fade from cloudColor to newCloudColor
     181      cloudColor = newCloudColor;
     182      this->cloudcolor->set(this->cloudColor.x, this->cloudColor.y, this->cloudColor.z);
     183    //}
     184    //if(cloudColor != newCloudColor)
     185    //{
     186      // TODO: fade from skyColor to newSkyColor
     187      skyColor = newSkyColor;
     188      this->skycolor->set(this->skyColor.x, this->skyColor.y, this->skyColor.z);
     189    //}
     190   
    174191    this->shader->deactivateShader();
    175192  }
     
    179196void CloudEffect::changeSkyColor(Vector color)
    180197{
    181   skyColor = color;
     198  newSkyColor = color;
    182199}
    183200
     
    185202void CloudEffect::changeCloudColor(Vector color)
    186203{
    187   cloudColor = color;
     204  newCloudColor = color;
    188205}
    189206
  • branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h

    r8787 r8789  
    101101  bool             cloudActivate;
    102102  float            animationSpeed;
     103  float            fadeTime;
     104 
     105  static Vector           newSkyColor;
     106  static Vector           newCloudColor;
    103107
    104108  // Material                 cloudMaterial;
Note: See TracChangeset for help on using the changeset viewer.