![]() |
VR-Forces 4.8 Class Documentation
|
class used to render crepuscular rays during the post processor camera draw More...

Public Types | |
| enum | VOLUMETRIC_PASS { DOWNSAMPLE4X = 0, VOLUMETRIC_RAYS, FINAL_PASS, PASSES_SIZE } |
Public Member Functions | |
| virtual | ~DtVolumetricDrawable () |
| destructor More... | |
| virtual void | reloadShaders () |
| reload the shaders More... | |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| overridden More... | |
| virtual void | setSize (int width, int height) |
| overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction virtual void releaseGLObjects(osg::State* state = 0) const; //! More... | |
| virtual void | setOcclusionTexture (osg::Texture *inputTex) |
| setter for the input texture from the previous post processor or main rendering More... | |
| virtual void | setBaseTexture (osg::Texture *inputTex) |
| setter for the base texture More... | |
| virtual void | setVisible (bool visible) |
| set/get visibility More... | |
| virtual bool | visible () const |
| virtual void | setParameters (const DtCrepuscularRaysParameters ¶ms) |
| communicate the parameters for the crepuscular rays More... | |
Public Member Functions inherited from makVrv::DtPostProcessorDrawable | |
| DtPostProcessorDrawable (DtDe &de) | |
| DtPostProcessorDrawable (const DtPostProcessorDrawable &orig, const osg::CopyOp &op) | |
| virtual | ~DtPostProcessorDrawable () |
| virtual void | drawTexturedQuad (bool drawOnly=false) const |
| prevent assignment More... | |
| virtual void | beginTexturedQuad () const |
| vert pointes gl states etc More... | |
| virtual void | endTexturedQuad () const |
| disable modes stup in begin More... | |
| virtual std::string | preprocessorDefinesString (void) const |
| preprocessor string taking into account the current options (multiview, etc) More... | |
| virtual unsigned int | createProgram (const std::string &path, const std::string &prefixName, const std::string &preprocessor="") const |
| create a program based on the name (name_ps.glsl and name_vs.glsl files are used) More... | |
| virtual void | destroyProgram (unsigned int program) const |
Protected Member Functions | |
| DtVolumetricDrawable (DtDe &de) | |
| constructor. private. only creator can create More... | |
| virtual void | initRenderTextures () const |
| initializes all the render textures if they have not been initialized yet More... | |
| virtual void | downSample4xPass (osg::State *state) const |
| down sample 4x pass More... | |
| virtual void | volumetricRaysPass (osg::State *state) const |
| volumetric rays pass More... | |
| virtual void | compositeRaysPass (osg::State *state) const |
| final compositing pass More... | |
| virtual void | createComputeProgramIfNecessary (VOLUMETRIC_PASS pass, const std::string &path, const std::string &name) const |
| helper function to create compute program More... | |
| virtual void | createProgramIfNecessary (VOLUMETRIC_PASS pass, const std::string &path, const std::string &prefixName) const |
| create the drawing program if not created already More... | |
| virtual void | initializeUniformLocations (VOLUMETRIC_PASS pass) const |
| initialize locations for the various uniforms More... | |
| virtual void | zeroOutUniformLocations () |
| brief initialize locations of the various uniforms to an unknown/invalid value More... | |
Protected Member Functions inherited from makVrv::DtPostProcessorDrawable | |
| void | setupGeometry () const |
| brief setup the vertex buffer object used in draw quad More... | |
Protected Attributes | |
| friend | DtVolumetricDrawableCreator |
| friended, to access constructor above More... | |
| int | myChannelWidth |
| int | myChannelHeight |
| osg::ref_ptr< osg::Texture > | myOcclusionTex |
| osg::ref_ptr< osg::Texture > | myBaseTex |
| DtGlTexture * | myMutableDownSampledOcclusionTexture |
| DtGlTexture * | myMutableVolumetricRaysBuffer |
| bool | myVisible |
| unsigned int | myMutablePrograms [PASSES_SIZE] |
| DtCrepuscularRaysParameters | myParameters |
| int | myMutableSlLightPositionOnScreenLoc |
| int | myMutableSlParametersLoc |
| int | myMutableSlLightColorLoc |
| int | myMutableSlOutputScaleLoc |
| int | myMutableBaseStrengthLoc |
| int | myMutableBaseTextureLoc |
| int | myMutableVolumetricTextureLoc |
Protected Attributes inherited from makVrv::DtPostProcessorDrawable | |
| DtDe & | myDe |
| unsigned int | myMutableVbo |
Private Member Functions | |
| DtVolumetricDrawable () | |
| private default constructor. not allowed. More... | |
| DtVolumetricDrawable (const DtVolumetricDrawable &) | |
| prevent copy-construction More... | |
| DtVolumetricDrawable & | operator= (const DtVolumetricDrawable &) |
| prevent assignment More... | |
class used to render crepuscular rays during the post processor camera draw
|
virtual |
destructor
|
protected |
constructor. private. only creator can create
|
private |
private default constructor. not allowed.
|
private |
prevent copy-construction
|
private |
prevent assignment
|
virtual |
reload the shaders
|
virtual |
overridden
overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction virtual void releaseGLObjects(osg::State* state = 0) const; //!
overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction set the 'viewport' size
|
virtual |
setter for the input texture from the previous post processor or main rendering
|
virtual |
setter for the base texture
|
inlinevirtual |
set/get visibility
|
inlinevirtual |
|
virtual |
communicate the parameters for the crepuscular rays
|
protectedvirtual |
initializes all the render textures if they have not been initialized yet
|
protectedvirtual |
down sample 4x pass
|
protectedvirtual |
volumetric rays pass
|
protectedvirtual |
final compositing pass
|
protectedvirtual |
helper function to create compute program
|
protectedvirtual |
create the drawing program if not created already
|
protectedvirtual |
initialize locations for the various uniforms
|
protectedvirtual |
brief initialize locations of the various uniforms to an unknown/invalid value
|
protected |
friended, to access constructor above
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |