![]() |
VR-Forces 4.8 Class Documentation
|
DtShaderEffectRain injects custom shaders into the scene, Handles rain on the ground causing the ground to look damp. More...

Classes | |
| class | RainEffectGeneration |
Public Member Functions | |
| virtual | ~DtShaderEffectRain () |
| DTOR. More... | |
| virtual void | initializeEffect (const std::vector< osg::StateSet * > &stateSets, DtIndirectTextureProcessor *textureProcessor, DtOsgRenderer &osgRenderer) |
| initializes or reinitializes the effects. More... | |
| virtual void | registerWeatherEffectsObject (DtOsgWeatherEffectsObject *weatherEffectsObject) |
| called by the DtOsgWeatherEffectsObject constructor to register itself when it is created. More... | |
| virtual void | releaseGLObjects (osg::State *state) |
| handle destruction of graphics objects when the context is destroyed More... | |
| virtual void | updateImGui () |
| update the imgui widgets and readback any changes from them More... | |
| virtual void | updateUniforms () |
| update the uniforms that may need to be changed based on the imgui or regular gui inputs. More... | |
Public Member Functions inherited from makVrv::DtShaderEffect | |
| virtual | ~DtShaderEffect () |
| DTOR. More... | |
| virtual void | updateTextureUniforms (unsigned int contextId) |
| update the texture uniforms for this shader effect More... | |
| virtual void | setEffectDirty (bool dirty) |
| set this effect dirty so that it will be reinitialized before the next time it is run More... | |
| virtual bool | effectDirty () |
| get if this effect is dirty More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtShaderEffectRain & | instance (DtDe &de) |
| Get/create instance of sky object manager. More... | |
| static const std::string & | theClassName () |
| Get the name this class is registered by. More... | |
Protected Member Functions | |
| DtShaderEffectRain (DtDe &de) | |
| constructor, protected since this is a singleton class that creates itself in instance() More... | |
| virtual RainEffectGeneration * | createRainEffectJob () |
| wrapper around the job creation to make it easy to override later. More... | |
| virtual void | slot_rainAccumulationChanged (double depth) |
| handle changes to the ground rain accumultation from the weather effects object More... | |
Protected Member Functions inherited from makVrv::DtShaderEffect | |
| DtShaderEffect (DtDe &de) | |
| constructor More... | |
| virtual int | loadShaderEffectTexture (const std::string &filename, const std::string &uniformName) |
| load a texture from a file and set it up as a bindless texture with the address in the specified uniform name More... | |
| virtual int | addShaderEffectTexture (osg::Texture *shaderEffectTexture, const std::string &uniformName) |
| add a texture and set it up as a bindless texture with the address in the specified uniform name More... | |
Protected Attributes | |
| DtSignalConnectionManager | myConnections |
| osg::ref_ptr< osg::Uniform > | myEnableRainUniform |
| osg::ref_ptr< osg::Uniform > | myRainUpThresholdUniform |
| osg::ref_ptr< osg::Uniform > | myRainColorUniform |
| osg::ref_ptr< osg::Uniform > | myRainMaskedRoadUniform |
| GLuint | myRainEffectTextureId |
| osg::ref_ptr< osg::Texture2D > | myRainEffectTexture |
| DtOsgRenderer & | myOsgRenderer |
| bool | myRainEnabled |
| float | myRainUpThresholdRange |
| float | myRainUpThresholdMin |
| float | myRainMaskedRoadMax |
| float | myRainMaskedRoadRange |
| bool | myEnablePuddleEffects |
| osg::Vec4 | myRainColor |
| DtOsgWeatherEffectsObject * | myWeatherEffectsObject |
| RainEffectGeneration * | myRainEffectGenerationJob |
Protected Attributes inherited from makVrv::DtShaderEffect | |
| DtDe & | myDe |
| TextureDataPtrVector | myShaderEffectTextures |
| bool | myEffectDirty |
Private Member Functions | |
| DtShaderEffectRain () | |
| unimplemented private default constructor More... | |
| DtShaderEffectRain (const DtShaderEffectRain &) | |
| Copy Constructor not implemented – Copy not allowed. More... | |
| DtShaderEffectRain & | operator= (const DtShaderEffectRain &) |
| Assignment Operator not implemented – Copy not allowed. More... | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtShaderEffect | |
| typedef std::vector < DtShaderEffectTextureData > | TextureDataPtrVector |
DtShaderEffectRain injects custom shaders into the scene, Handles rain on the ground causing the ground to look damp.
Also adds an effect to puddled areas which show rain drops in the puddles.
|
virtual |
DTOR.
|
protected |
constructor, protected since this is a singleton class that creates itself in instance()
|
private |
unimplemented private default constructor
|
private |
Copy Constructor not implemented – Copy not allowed.
|
private |
Assignment Operator not implemented – Copy not allowed.
|
virtual |
initializes or reinitializes the effects.
Called by DtOsgRenderer at startup and whenever reload shaders is triggered reloads the shader changes if triggered from reload shaders but the texture is not reloaded off disk due to osgFileCache
Reimplemented from makVrv::DtShaderEffect.
|
virtual |
called by the DtOsgWeatherEffectsObject constructor to register itself when it is created.
Implements makVrv::DtShaderEffect.
|
virtual |
handle destruction of graphics objects when the context is destroyed
Implements makVrv::DtShaderEffect.
|
virtual |
update the imgui widgets and readback any changes from them
Implements makVrv::DtShaderEffect.
|
virtual |
update the uniforms that may need to be changed based on the imgui or regular gui inputs.
Implements makVrv::DtShaderEffect.
|
protectedvirtual |
wrapper around the job creation to make it easy to override later.
|
protectedvirtual |
handle changes to the ground rain accumultation from the weather effects object
|
static |
Get/create instance of sky object manager.
|
static |
Get the name this class is registered by.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |