![]() |
VR-Forces 4.8 Class Documentation
|
DtShaderEffectSnow injects custom shaders into the scene, Handles snow on the ground causing the ground to look covered by snow. More...

Classes | |
| class | SnowEffectGeneration |
Public Member Functions | |
| virtual | ~DtShaderEffectSnow () |
| DTOR. More... | |
| virtual void | initializeEffect (const std::vector< osg::StateSet * > &statesets, DtIndirectTextureProcessor *textureProcessor, DtOsgRenderer &osgRenderer) |
| initializes or reinitializes the effects. More... | |
| virtual void | releaseGLObjects (osg::State *state) |
| handle destruction of graphics objects when the context is destroyed More... | |
| virtual void | registerWeatherEffectsObject (DtOsgWeatherEffectsObject *weatherEffectsObject) |
| called by the DtOsgWeatherEffectsObject constructor to register itself when it is created. More... | |
| virtual void | reloadShader () |
| mark the effect as dirty so the shaders are reloaded. 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 DtShaderEffectSnow & | 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 | |
| DtShaderEffectSnow (DtDe &de) | |
| constructor More... | |
| virtual void | slot_snowAccumulationChanged (double depth) |
| listen to the snow accumulation changes from the environment More... | |
| virtual void | slot_snowRoadAccumulationChanged (double depth) |
| listen to the snow road accumulation changes from the environment More... | |
| virtual void | slot_snowMinimumElevationChanged (double elevation) |
| listen to the snow minimum elevation changes from the environment More... | |
| virtual void | slot_snowElevationTransitionChagned (double elevation) |
| listen to the snow elevation transition changes from the environment More... | |
| virtual SnowEffectGeneration * | createSnowEffectJob () |
| wrapper around the job creation to make it easy to override later. 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 > | myEnableSnowUniform |
| osg::ref_ptr< osg::Uniform > | mySnowUpThresholdUniform |
| osg::ref_ptr< osg::Uniform > | mySnowColorUniform |
| osg::ref_ptr< osg::Uniform > | mySnowMaskedRoadUniform |
| GLuint | mySnowEffectTextureId |
| GLuint64 | mySnowEffectImageHandle |
| osg::ref_ptr< osg::Texture2D > | mySnowEffectTexture |
| bool | mySnowEnabled |
| float | mySnowUpThresholdRange |
| float | mySnowUpThresholdMin |
| float | mySnowElevationMin |
| float | mySnowElevationRange |
| float | mySnowMaskedRoadMax |
| float | mySnowMaskedRoadRange |
| bool | myEnableBlowingSnow |
| osg::Vec4 | mySnowColor |
| DtOsgWeatherEffectsObject * | myWeatherEffectsObject |
| SnowEffectGeneration * | mySnowEffectGenerationJob |
| DtOsgRenderer & | myOsgRenderer |
Protected Attributes inherited from makVrv::DtShaderEffect | |
| DtDe & | myDe |
| TextureDataPtrVector | myShaderEffectTextures |
| bool | myEffectDirty |
Private Member Functions | |
| DtShaderEffectSnow () | |
| unimplemented private default constructor More... | |
| DtShaderEffectSnow (const DtShaderEffectSnow &) | |
| Copy Constructor not implemented – Copy not allowed. More... | |
| DtShaderEffectSnow & | operator= (const DtShaderEffectSnow &) |
| Assignment Operator not implemented – Copy not allowed. More... | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtShaderEffect | |
| typedef std::vector < DtShaderEffectTextureData > | TextureDataPtrVector |
DtShaderEffectSnow injects custom shaders into the scene, Handles snow on the ground causing the ground to look covered by snow.
Also adds an effect to road areas which show snow blowing over the road
|
virtual |
DTOR.
|
protected |
constructor
|
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 |
handle destruction of graphics objects when the context is destroyed
Implements makVrv::DtShaderEffect.
|
virtual |
called by the DtOsgWeatherEffectsObject constructor to register itself when it is created.
Implements makVrv::DtShaderEffect.
|
virtual |
mark the effect as dirty so the shaders are reloaded.
|
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.
|
static |
Get/create instance of sky object manager.
|
static |
Get the name this class is registered by.
|
protectedvirtual |
listen to the snow accumulation changes from the environment
|
protectedvirtual |
listen to the snow road accumulation changes from the environment
|
protectedvirtual |
listen to the snow minimum elevation changes from the environment
|
protectedvirtual |
listen to the snow elevation transition changes from the environment
|
protectedvirtual |
wrapper around the job creation to make it easy to override later.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |