Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 6:21:24 PM (19 years ago)
Author:
stefalie
Message:

mountain_lake: fading works… sometimes :-)

File:
1 edited

Legend:

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

    r8877 r8884  
    2828#include "shader.h"
    2929
     30// forward declaration
     31template <class T> class tAnimation;
    3032
    3133class MappedWater : public WorldEntity
     
    7577  // fade functions, hacky HACK
    7678  void fadeWaterColor(float r, float g, float b, float time) {this->newWaterColor = Vector(r, g, b); this->colorFadeTime = time; }
    77   void fadeShininess(float shine, float time);
     79  void fadeShineSize(float shine, float time) {this->newShineSize = shine; this->shineSizeFadeTime = time; }
    7880  void fadeLightPos(float x, float y, float z, float time);
    7981
     
    120122  Shader::Uniform*    refr_uni;               //!< uniform that is used for the strength of the refraction
    121123
     124  // fading
     125  tAnimation<MappedWater>*      shineSizeFader;
     126  float                         newShineSize;
     127  float                         shineSizeFadeTime;
     128  bool                          bFadeShineSize;
     129
    122130  // skirmish HACK
    123131  Vector              newWaterColor;          //!< used to fade the water color
Note: See TracChangeset for help on using the changeset viewer.