CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions | Protected Attributes
osgCloudyDay::TerrainHimmel Class Reference

#include <TerrainHimmel.h>

Inheritance diagram for osgCloudyDay::TerrainHimmel:
osgCloudyDay::MyTerrain

List of all members.

Public Member Functions

 TerrainHimmel (TerrainConfig *config, bool use_tesselation_shader)
 ~TerrainHimmel (void)
virtual void Initialize ()
osg::ref_ptr< osg::Texture2D > GetLightshaft1 ()
osg::ref_ptr< osg::Texture2D > GetLightshaft2 ()
void SetLightshaft1 (osg::ref_ptr< osg::Texture2D > tex)
void SetLightshaft2 (osg::ref_ptr< osg::Texture2D > tex)
- Public Member Functions inherited from osgCloudyDay::MyTerrain
 MyTerrain (TerrainConfig *config)
 ~MyTerrain (void)
osg::MatrixTransform * GetNode ()
osg::MatrixTransform * GetLightNode ()
void SetFog (Fog *fog)
osg::ref_ptr< osg::Texture2D > GetHeightTexture ()
osg::ref_ptr< osg::Texture2D > GetDefinitionTexture ()
osg::ref_ptr< osg::Texture2D > GetOrthogonalTexture ()

Protected Attributes

osg::ref_ptr< osg::Texture2D > fbo_lightshaft1
osg::ref_ptr< osg::Texture2D > fbo_lightshaft2
- Protected Attributes inherited from osgCloudyDay::MyTerrain
Fogm_fog
osg::ref_ptr< osg::Texture2D > tex_height
osg::ref_ptr< osg::Texture2D > tex_def
osg::ref_ptr< osg::Texture2D > tex_ortho
TerrainConfigm_config
osg::ref_ptr< osg::Program > terrainShadowProg
osg::ref_ptr< osg::Program > mieTerrainProg
osg::ref_ptr
< osg::MatrixTransform > 
trans
osg::ref_ptr
< osg::MatrixTransform > 
trans_light
bool m_use_geometry_shader

Detailed Description

Class to create a terrain with the bruneton approach


Constructor & Destructor Documentation

osgCloudyDay::TerrainHimmel::TerrainHimmel ( TerrainConfig config,
bool  use_tesselation_shader 
)

Constructor

Parameters:
configconfiguration of the terrain
use_tesselation_shadershould the tesselation shader approach be used
osgCloudyDay::TerrainHimmel::~TerrainHimmel ( void  )

Deconstructor


Member Function Documentation

osg::ref_ptr< osg::Texture2D > osgCloudyDay::TerrainHimmel::GetLightshaft1 ( )

Returns the first texture to calculate the lightshaft

Returns:
lightshaft texture
osg::ref_ptr< osg::Texture2D > osgCloudyDay::TerrainHimmel::GetLightshaft2 ( )

Returns the second texture to calculate the lightshaft

Returns:
lightshaft texture
void osgCloudyDay::TerrainHimmel::Initialize ( )
virtual

Initalize method, creates the terrain

Implements osgCloudyDay::MyTerrain.

void osgCloudyDay::TerrainHimmel::SetLightshaft1 ( osg::ref_ptr< osg::Texture2D >  tex)

Method to pass the lightshaft1 texture

Parameters:
textexture to lightshaft 1
void osgCloudyDay::TerrainHimmel::SetLightshaft2 ( osg::ref_ptr< osg::Texture2D >  tex)

Method to pass the lightshaft2 texture

Parameters:
textexture to lightshaft 2

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