Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2006, 2:29:33 PM (19 years ago)
Author:
hdavid
Message:

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

File:
1 edited

Legend:

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

    r8781 r8787  
    4848  inline void activateCloud()
    4949  { this->activate(); }
    50  
     50
    5151  inline void deactivateCloud()
    5252  { this->deactivate(); }
    53  
     53
    5454  inline void setCloudOption(const std::string& option)
    5555  {
     
    5757      this->cloudActivate = true;
    5858  }
    59  
     59
    6060  inline void setAnimationSpeed(float speed)
    61   { this->animationSpeed = speed; }
     61{ this->animationSpeed = speed; }
    6262
    6363  inline void setCloudScale(float scale)
    6464  { this->scale = scale; }
    65  
     65
    6666  inline void setCloudColor(float colorX, float colorY, float colorZ)
    6767  { this->cloudColor = Vector(colorX, colorY, colorZ); }
    68  
     68
    6969  inline void setSkyColor(float colorX, float colorY, float colorZ)
    7070  { this->skyColor = Vector(colorX, colorY, colorZ); }
    71  
     71
    7272  inline void setPlanetRadius(float planetRadius)
    7373  { this->planetRadius = planetRadius; }
    74  
     74
    7575  inline void setAtmosphericRadius(float atmosphericRadius)
    7676  { this->atmosphericRadius = atmosphericRadius; }
    77  
     77
    7878  inline void setDivisions(int divs)
    7979  { this->divs = divs; }
    80  
     80
    8181  virtual void draw() const;
    8282  virtual void tick(float dt);
     83
     84  static void changeSkyColor(Vector color);
     85  static void changeCloudColor(Vector color);
    8386 
    84  
     87  static Vector    cloudColor;
     88  static Vector    skyColor;
    8589
    8690  void make3DNoiseTexture();
     
    97101  bool             cloudActivate;
    98102  float            animationSpeed;
    99   Vector           cloudColor;
    100   Vector           skyColor;
    101103
    102104  // Material                 cloudMaterial;
    103105  Skydome*         skydome;
    104  
     106
    105107  // SHADER STUFF
    106108  Shader*          shader;
Note: See TracChangeset for help on using the changeset viewer.