![]() |
VR-Forces 4.10 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 | |
| DtShaderEffectRain (DtDe &de) | |
| constructor More... | |
| virtual | ~DtShaderEffectRain () |
| DTOR. More... | |
| DtShaderEffectRain ()=delete | |
| unimplemented private default constructor More... | |
| DtShaderEffectRain (const DtShaderEffectRain &)=delete | |
| Copy Constructor not implemented – Copy not allowed. More... | |
| DtShaderEffectRain & | operator= (const DtShaderEffectRain &)=delete |
| Assignment Operator not implemented – Copy not allowed. 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) override |
| 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... | |
| virtual void | setCameraLocation (const DtVector &location) |
| sets the location for localized effects. More... | |
| virtual const DtVector & | cameraLocation () const |
Public Member Functions inherited from makVrv::DtShaderEffect | |
| virtual | ~DtShaderEffect () |
| DTOR. More... | |
| DtShaderEffect ()=delete | |
| unimplemented private default constructor More... | |
| DtShaderEffect (const DtShaderEffect &)=delete | |
| Copy Constructor not implemented – Copy not allowed. More... | |
| DtShaderEffect & | operator= (const DtShaderEffect &)=delete |
| Assignment Operator not implemented – Copy not allowed. 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 const std::string & | theClassName () |
| Get the name this class is registered by. More... | |
Protected Member Functions | |
| 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... | |
| virtual void | updateEnabledState (const float depth) |
| Computes the current enabled state based on the given rain accumulation depth. 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 |
| float | myRainAccumulationDepth |
| bool | myEnablePuddleEffects |
| osg::Vec4 | myRainColor |
| DtOsgWeatherEffectsObject * | myWeatherEffectsObject |
| RainEffectGeneration * | myRainEffectGenerationJob |
| DtVector | myCameraLocation |
| float | myPrecipitationIntensity |
Protected Attributes inherited from makVrv::DtShaderEffect | |
| DtDe & | myDe |
| TextureDataPtrVector | myShaderEffectTextures |
| bool | myEffectDirty |
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.
| makVrv::DtShaderEffectRain::DtShaderEffectRain | ( | DtDe & | de | ) |
constructor
|
virtual |
DTOR.
|
delete |
unimplemented private default constructor
|
delete |
Copy Constructor not implemented – Copy not allowed.
|
delete |
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.
|
overridevirtual |
handle destruction of graphics objects when the context is destroyed
Reimplemented from 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.
|
virtual |
sets the location for localized effects.
Reimplemented from makVrv::DtShaderEffect.
|
virtual |
|
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
|
protectedvirtual |
Computes the current enabled state based on the given rain accumulation depth.
|
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 |
|
protected |
|
protected |
|
protected |