Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 27, 2006, 3:01:54 PM (18 years ago)
Author:
stefalie
Message:

mountain_lake: some fading hacks… doesnt work at all… yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mountain_lake/src/world_entities/environments/mapped_water.h

    r8792 r8828  
    4444
    4545  // functions to set parameters for the water, usually they're called through loadparam
    46   void setLightPos(float x, float y, float z) { this->lightPos = Vector(x,y,z); };
    47   void setWaterPos(float x, float y, float z) { this->waterPos = Vector(x,y,z); };
    48   void setWaterSize(float x, float z) { this->xWidth = x; this->zWidth = z; };
    49   void setWaterAngle(float angle) { this->waterAngle = angle; };
    50   void setWaterUV(float uv) { this->waterUV = uv; };
     46  void setLightPos(float x, float y, float z) { this->lightPos = Vector(x,y,z); }
     47  void setWaterPos(float x, float y, float z) { this->waterPos = Vector(x,y,z); }
     48  void setWaterSize(float x, float z) { this->xWidth = x; this->zWidth = z; }
     49  void setWaterAngle(float angle) { this->waterAngle = angle; }
     50  void setWaterUV(float uv) { this->waterUV = uv; }
    5151  void setWaterFlow(float flow) { this->waterFlow = flow; };
    52   void setNormalMapScale(float scale) { this->kNormalMapScale = scale; };
    53   void setShininess(float shine) { this->shininess = shine; };
    54   void setWaterColor(float r, float g, float b) { this->waterColor = Vector(r,g,b); };
     52  void setNormalMapScale(float scale) { this->kNormalMapScale = scale; }
     53  void setShininess(float shine) { this->shininess = shine; }
     54  void setWaterColor(float r, float g, float b) { this->waterColor = Vector(r,g,b); this->newWaterColor = this->waterColor; }
    5555
    5656  // functions to change water parameters during runtime
     
    6161
    6262  // fade functions
    63   void fadeWaterColor(float r, float g, float b, float time);
     63  void fadeWaterColor(float r, float g, float b, float time) {this->newWaterColor = Vector(r, g, b); this->colorFadeTime = time; }
    6464  void fadeShininess(float shine, float time);
    6565  void fadeLightPos(float x, float y, float z, float time);
     
    7676  float               waterAngle;             //!< defines how much the water will be turned around the point waterPos
    7777  Vector              waterColor;             //!< color of the water
    78   float               move;                   //!< textures coords, speeds, positions for the shaded textures....
     78
     79  Vector              newWaterColor;          //!< used to fade the water color
     80  float               colorFadeTime;
     81
     82  float               move;
    7983  float               move2;
    8084  float               waterUV;                //!< size of the waves
Note: See TracChangeset for help on using the changeset viewer.