CloudyDay
 All Classes Functions Variables Enumerations
Fog.h
1 #pragma once
2 #include <osg/Vec3>
3 #include <osg/StateSet>
4 
5 namespace osgCloudyDay
6 {
10  class Fog
11  {
12  public:
16  Fog(void);
17  /*
18  * Standard deconstrutor
19  */
20  ~Fog(void);
21 
26  float GetFogDensity();
31  void SetFogDensity(float density);
32 
37  float GetFogHeight();
42  void SetFogHeight(float height);
43 
48  osg::Vec3 GetFogColor();
53  void SetFogColor(osg::Vec3 color);
54 
59  void SetupUniform(osg::ref_ptr<osg::StateSet>& states);
60 
61  private:
62  float m_fogdensity;
63  float m_fogheight;
64  osg::Vec3 m_fogcolor;
65  };
66 }