CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions | Public Attributes | Static Public Attributes
osgCloudyDay::CloudGeometry Class Reference

#include <CloudGeometry.h>

List of all members.

Public Member Functions

 CloudGeometry (osg::ref_ptr< osg::Texture2D > _tex_clouds, osg::ref_ptr< osg::Texture2D > _fbo_light_texture, osg::ref_ptr< osg::Texture2D > _fbo_light_depth, osg::ref_ptr< osg::Texture2D > _fbo_blur_texture, osg::ref_ptr< osg::FrameBufferObject > _fbo_shadow, osg::ref_ptr< osg::FrameBufferObject > _fbo_vert_linear_blur, osg::ref_ptr< osg::FrameBufferObject > _fbo_hori_linear_blur, osg::ref_ptr< osg::FrameBufferObject > _fbo_hori_blur, osg::ref_ptr< osg::FrameBufferObject > _fbo_vert_blur, osg::ref_ptr< osg::FrameBufferObject > _fbo_cloud_viewer, osg::ref_ptr< osg::FrameBufferObject > _fbo_hori_blur2, osg::ref_ptr< osg::Program > viewer, osg::ref_ptr< osg::Program > light, osg::ref_ptr< osg::Program > blur_vert, osg::ref_ptr< osg::Program > blur_hori, osg::ref_ptr< osg::Program > blur_linear_vert, osg::ref_ptr< osg::Program > blur_linear_hori, osg::ref_ptr< osg::Program > shadow_map)
void AddLayer (int type)
void AddPrimitive (int type)
void SetActiveLayer (int layer)
void DeletePrimitives ()
void Active (bool type)
virtual void CloudGeometry::drawImplementation (osg::RenderInfo &renderInfo) const

Public Attributes

osg::ref_ptr
< osg::FrameBufferObject > 
fbo_cloud_viewer
osg::ref_ptr< osg::Program > sh_viewer
osg::ref_ptr< osg::Program > sh_light
osg::ref_ptr< osg::Program > sh_blur_vert
osg::ref_ptr< osg::Program > sh_blur_hori
osg::ref_ptr< osg::Program > sh_blur_linear_vert
osg::ref_ptr< osg::Program > sh_blur_linear_hori
osg::ref_ptr< osg::Program > sh_shadow_map
osg::ref_ptr< osg::Texture2D > tex_clouds
osg::ref_ptr< osg::Texture2D > fbo_light_texture
osg::ref_ptr< osg::Texture2D > fbo_light_depth
osg::ref_ptr< osg::Texture2D > fbo_blur_texture
osg::ref_ptr
< osg::FrameBufferObject > 
fbo_shadow
osg::ref_ptr
< osg::FrameBufferObject > 
fbo_vert_linear_blur
osg::ref_ptr
< osg::FrameBufferObject > 
fbo_hori_linear_blur
osg::ref_ptr
< osg::FrameBufferObject > 
fbo_hori_blur
osg::ref_ptr
< osg::FrameBufferObject > 
fbo_vert_blur
osg::ref_ptr
< osg::FrameBufferObject > 
fbo_hori_blur2
osg::ref_ptr< osg::Uniform > projectuniform
osg::ref_ptr< osg::Uniform > modelViewMatrixuniform
osg::ref_ptr< osg::Uniform > viewMatrixuniform
osg::ref_ptr< osg::Uniform > viewMatrixInvuniform
osg::ref_ptr< osg::Uniform > project_lightuniform
osg::ref_ptr< osg::Uniform > modelViewMatrix_lightuniform
osg::ref_ptr< osg::Uniform > viewMatrix_lightuniform
osg::ref_ptr< osg::Uniform > viewMatrixInv_lightuniform
bool processing
std::vector< int > m_layers
bool m_slicingViewVectorTransformed
unsigned int m_active_layer
osg::ref_ptr< osg::UIntArray > m_primitive2Layer
osg::ref_ptr< osg::IntArray > m_numPrimitiveArrays
osg::ref_ptr< osg::IntArray > m_CloudsIterArrays

Static Public Attributes

static bool blur = false

Detailed Description

Cloud geometry class. Overloads the osg::Geometry class to render the 3D clouds


Constructor & Destructor Documentation

osgCloudyDay::CloudGeometry::CloudGeometry ( osg::ref_ptr< osg::Texture2D >  _tex_clouds,
osg::ref_ptr< osg::Texture2D >  _fbo_light_texture,
osg::ref_ptr< osg::Texture2D >  _fbo_light_depth,
osg::ref_ptr< osg::Texture2D >  _fbo_blur_texture,
osg::ref_ptr< osg::FrameBufferObject >  _fbo_shadow,
osg::ref_ptr< osg::FrameBufferObject >  _fbo_vert_linear_blur,
osg::ref_ptr< osg::FrameBufferObject >  _fbo_hori_linear_blur,
osg::ref_ptr< osg::FrameBufferObject >  _fbo_hori_blur,
osg::ref_ptr< osg::FrameBufferObject >  _fbo_vert_blur,
osg::ref_ptr< osg::FrameBufferObject >  _fbo_cloud_viewer,
osg::ref_ptr< osg::FrameBufferObject >  _fbo_hori_blur2,
osg::ref_ptr< osg::Program >  viewer,
osg::ref_ptr< osg::Program >  light,
osg::ref_ptr< osg::Program >  blur_vert,
osg::ref_ptr< osg::Program >  blur_hori,
osg::ref_ptr< osg::Program >  blur_linear_vert,
osg::ref_ptr< osg::Program >  blur_linear_hori,
osg::ref_ptr< osg::Program >  shadow_map 
)

Constructor

Parameters:
_tex_cloudscloud texture

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