![]() |
VR-Forces 5.0.3 Developer's Guide
|
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.

Classes | |
| class | SnowEffectGeneration |
Public Member Functions | |
| virtual | ~DtShaderEffectSnow () |
| DtShaderEffectSnow (DtDe &de) | |
| DtShaderEffectSnow ()=delete | |
| DtShaderEffectSnow (const DtShaderEffectSnow &)=delete | |
| DtShaderEffectSnow & | operator= (const DtShaderEffectSnow &)=delete |
| virtual void | initializeEffect (const std::vector< osg::StateSet * > &statesets, DtIndirectTextureProcessor *textureProcessor, DtOsgRenderer &osgRenderer) |
| virtual void | releaseGLObjects (osg::State *state) override |
| virtual void | registerWeatherEffectsObject (DtOsgWeatherEffectsObject *weatherEffectsObject) |
| virtual void | reloadShader () |
| virtual void | updateImGui () |
| virtual void | updateUniforms () |
| virtual void | setCameraLocation (const DtVector &location) |
| virtual const DtVector & | cameraLocation () const |
| virtual void | setWindSpeed (float speed) |
| virtual void | setWindDirection (float direction) |
Public Member Functions inherited from makVrv::DtShaderEffect | |
| virtual | ~DtShaderEffect () |
| DtShaderEffect ()=delete | |
| DtShaderEffect (const DtShaderEffect &)=delete | |
| DtShaderEffect & | operator= (const DtShaderEffect &)=delete |
| virtual void | updateTextureUniforms (const osg::GraphicsContext *graphicsContext) |
| virtual void | setEffectDirty (bool dirty) |
| virtual bool | effectDirty () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static const std::string & | theClassName () |
Protected Member Functions | |
| virtual void | installShader (const std::vector< osg::StateSet * > &stateSets) |
| virtual void | uninstallShader (const std::vector< osg::StateSet * > &stateSets) |
| virtual void | updateEnabledState () |
| virtual void | slot_snowAccumulationChanged (double depth) |
| virtual void | slot_snowRoadAccumulationChanged (double depth) |
| virtual void | slot_snowMinimumElevationChanged (double elevation) |
| virtual void | slot_snowElevationTransitionChanged (double elevation) |
| virtual void | slot_PreObserverUpdate (double simTime) |
| virtual SnowEffectGeneration * | createSnowEffectJob () |
Protected Member Functions inherited from makVrv::DtShaderEffect | |
| DtShaderEffect (DtDe &de) | |
| virtual int | loadShaderEffectTexture (const std::string &filename, const std::string &uniformName) |
| virtual int | addShaderEffectTexture (osg::Texture *shaderEffectTexture, const std::string &uniformName) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtShaderEffect | |
| typedef std::vector < DtShaderEffectTextureData > | TextureDataPtrVector |
|
virtual |
DTOR.
| makVrv::DtShaderEffectSnow::DtShaderEffectSnow | ( | DtDe & | de | ) |
constructor
|
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.
|
overridevirtual |
handle destruction of graphics objects when the context is destroyed
Reimplemented from 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.
|
virtual |
sets the location for localized effects.
Reimplemented from makVrv::DtShaderEffect.
|
virtual |
|
virtual |
Sets the wind speed.
| speed | The wind speed in meters per second. |
Reimplemented from makVrv::DtShaderEffect.
|
virtual |
Sets the wind direction.
| direction | The wind direction in radians from true north (clockwise). |
Reimplemented from makVrv::DtShaderEffect.
|
static |
Get the name this class is registered by.
|
protectedvirtual |
Install the virtual program shader.
|
protectedvirtual |
Install the virtual program shader.
|
protectedvirtual |
Computes the current enabled state based on the current state values.
|
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 |
handle the pre objeserver update.
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |