#include <Fog.h>
Public Member Functions | |
| Fog (void) | |
| float | GetFogDensity () |
| void | SetFogDensity (float density) |
| float | GetFogHeight () |
| void | SetFogHeight (float height) |
| osg::Vec3 | GetFogColor () |
| void | SetFogColor (osg::Vec3 color) |
| void | SetupUniform (osg::ref_ptr< osg::StateSet > &states) |
Class to create a fog effect
| osgCloudyDay::Fog::Fog | ( | void | ) |
Constructor: Initialize Fog with predefined values
| osg::Vec3 osgCloudyDay::Fog::GetFogColor | ( | ) |
Returns the Fog color
| float osgCloudyDay::Fog::GetFogDensity | ( | ) |
Returns the Fog density
| float osgCloudyDay::Fog::GetFogHeight | ( | ) |
Returns the maximum height of the fog
| void osgCloudyDay::Fog::SetFogColor | ( | osg::Vec3 | color | ) |
This method sets the density of the fog
| color | color of the fog |
| void osgCloudyDay::Fog::SetFogDensity | ( | float | density | ) |
This method sets the density of the fog
| density | density of the fog |
| void osgCloudyDay::Fog::SetFogHeight | ( | float | height | ) |
This method sets the density of the fog
| height | maximum height of the fog |
| void osgCloudyDay::Fog::SetupUniform | ( | osg::ref_ptr< osg::StateSet > & | states | ) |
This method sets the uniforms of the geode
| states | states of the geode |
1.8.1.1