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

List of all members.

Classes

struct  PhysicalModelConfig
struct  PrecomputedTextureConfig

Public Types

typedef struct
osgCloudyDay::AtmospherePrecompute::PrecomputedTextureConfig 
t_preTexCfg
typedef struct
osgCloudyDay::AtmospherePrecompute::PhysicalModelConfig 
t_modelCfg

Public Member Functions

t_modelCfggetModelConfig ()
osg::Texture2D * getTransmittanceTexture ()
osg::Texture2D * getIrradianceTexture ()
osg::Texture3D * getInscatterTexture ()
const bool compute (const bool ifDirtyOnly=true)
void dirty ()
const float defaultAltitude ()
osg::Uniform * cmnUniform ()
void substituteMacros (std::string &source)

Protected Types

typedef std::map< GLint,
osg::Texture2D * > 
t_tex2DsByUnit
typedef std::map< GLint,
osg::Texture3D * > 
t_tex3DsByUnit
typedef std::vector
< osg::Uniform * > 
t_uniforms

Protected Member Functions

t_preTexCfggetTextureConfig ()
osg::Texture2D * getDeltaETexture ()
osg::Texture3D * getDeltaSRTexture ()
osg::Texture3D * getDeltaSMTexture ()
osg::Texture3D * getDeltaJTexture ()
osg::GraphicsContext * setupContext ()
osg::Geode * genQuad () const
osg::Texture2D * setupTexture2D (const char *name, const GLenum internalFormat, const GLenum pixelFormat, const GLenum dataType, const int width, const int height, osg::Image *image=NULL)
osg::Texture3D * setupTexture3D (const char *name, const GLenum internalFormat, const GLenum pixelFormat, const GLenum dataType, const int width, const int height, const int depth, osg::Image *image=NULL)
osg::Image * getLayerFrom3DImage (osg::Image *source, const int layer)
void setupLayerUniforms (osg::StateSet *stateSet, const int depth, const int layer)
osg::Program * setupProgram (const std::string &fragmentShaderSource)
osg::Camera * setupCamera (const int viewportWidth, const int viewportHeight, osg::Geode *geode, const int orderNum)
osg::Group * setupGroup (osgViewer::CompositeViewer *viewer)
void cleanUp (osgViewer::CompositeViewer *viewer)
void assignUniforms (osg::StateSet *stateSet, t_uniforms &uniforms)
void assignSamplers (osg::StateSet *stateSet, t_tex2DsByUnit &samplers2D, t_tex3DsByUnit &samplers3D)
void dirtyTargets (t_tex2DsByUnit &targets2D)
void dirtyTargets (t_tex3DsByUnit &targets3D)
void render2D (osgViewer::CompositeViewer *viewer, osg::Geode *geode, t_tex2DsByUnit &targets2D, t_tex2DsByUnit &samplers2D, t_tex3DsByUnit &samplers3D, t_uniforms &uniforms, const char *fragmentShaderSource)
void render3D (osgViewer::CompositeViewer *viewer, osg::Geode *geode, t_tex3DsByUnit &targets3D, t_tex2DsByUnit &samplers2D, t_tex3DsByUnit &samplers3D, t_uniforms &uniforms, const char *fragmentShaderSource)

Protected Attributes

bool m_dirty
t_preTexCfg m_preTexCfg
t_modelCfg m_modelCfg
osg::ref_ptr< osg::Texture2D > m_transmittanceTexture
osg::ref_ptr< osg::Texture2D > m_deltaETexture
osg::ref_ptr< osg::Texture3D > m_deltaSRTexture
osg::ref_ptr< osg::Texture3D > m_deltaSMTexture
osg::ref_ptr< osg::Texture2D > m_irradianceTexture
osg::ref_ptr< osg::Texture3D > m_inscatterTexture
osg::ref_ptr< osg::Texture3D > m_deltaJTexture
osg::ref_ptr< osg::Image > m_transmittanceImage
osg::ref_ptr< osg::Image > m_irradianceImage
osg::ref_ptr< osg::Image > m_inscatterImage

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