Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2006, 3:21:15 PM (18 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: fog fade

File:
1 edited

Legend:

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

    r8247 r8253  
    2626                void deactivateFog() { this->deactivate(); }
    2727
     28                virtual void draw() const;
     29                virtual void tick(float dt);
     30
    2831                inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
    2932                inline void setFogDensity(float density) { this->fogDensity = density; }
     
    3235                inline void setFogOption(const std::string& option) { if (option == "activate") this->fogActivate = true; }
    3336
     37                void startFogging();
     38
    3439        private:
    3540                GLint stringToFogMode(const std::string& mode);
    3641
    3742                bool                            fogActivate;
    38 
     43                GLfloat                         fogFadeDuration;
     44                float                           localTimer;
     45               
    3946                GLint                           fogMode;
    4047                GLfloat                         fogDensity;
     48                GLfloat                         fogFadeDensity;
     49
    4150                GLfloat                         fogStart;
    4251                GLfloat                         fogEnd;
Note: See TracChangeset for help on using the changeset viewer.