CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions
osgCloudyDay::Fog Class Reference

#include <Fog.h>

List of all members.

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)

Detailed Description

Class to create a fog effect


Constructor & Destructor Documentation

osgCloudyDay::Fog::Fog ( void  )

Constructor: Initialize Fog with predefined values


Member Function Documentation

osg::Vec3 osgCloudyDay::Fog::GetFogColor ( )

Returns the Fog color

Returns:
color of the fog
float osgCloudyDay::Fog::GetFogDensity ( )

Returns the Fog density

Returns:
density of the fog
float osgCloudyDay::Fog::GetFogHeight ( )

Returns the maximum height of the fog

Returns:
maximum height of the fog
void osgCloudyDay::Fog::SetFogColor ( osg::Vec3  color)

This method sets the density of the fog

Parameters:
colorcolor of the fog
void osgCloudyDay::Fog::SetFogDensity ( float  density)

This method sets the density of the fog

Parameters:
densitydensity of the fog
void osgCloudyDay::Fog::SetFogHeight ( float  height)

This method sets the density of the fog

Parameters:
heightmaximum height of the fog
void osgCloudyDay::Fog::SetupUniform ( osg::ref_ptr< osg::StateSet > &  states)

This method sets the uniforms of the geode

Parameters:
statesstates of the geode

The documentation for this class was generated from the following files: