#include <TerrainHimmel.h>
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 | |
| Fog * | m_fog |
| osg::ref_ptr< osg::Texture2D > | tex_height |
| osg::ref_ptr< osg::Texture2D > | tex_def |
| osg::ref_ptr< osg::Texture2D > | tex_ortho |
| TerrainConfig * | m_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 |
Class to create a terrain with the bruneton approach
| osgCloudyDay::TerrainHimmel::TerrainHimmel | ( | TerrainConfig * | config, |
| bool | use_tesselation_shader | ||
| ) |
Constructor
| config | configuration of the terrain |
| use_tesselation_shader | should the tesselation shader approach be used |
| osgCloudyDay::TerrainHimmel::~TerrainHimmel | ( | void | ) |
Deconstructor
| osg::ref_ptr< osg::Texture2D > osgCloudyDay::TerrainHimmel::GetLightshaft1 | ( | ) |
Returns the first texture to calculate the lightshaft
| osg::ref_ptr< osg::Texture2D > osgCloudyDay::TerrainHimmel::GetLightshaft2 | ( | ) |
Returns the second texture to calculate the lightshaft
|
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
| tex | texture to lightshaft 1 |
| void osgCloudyDay::TerrainHimmel::SetLightshaft2 | ( | osg::ref_ptr< osg::Texture2D > | tex | ) |
Method to pass the lightshaft2 texture
| tex | texture to lightshaft 2 |
1.8.1.1