![]() |
VR-Forces 5.0.3 Developer's Guide
|
DtShaderEffect injects custom shaders into the scenes, There are derrived classes of this for snow and rain on the ground effects.

Classes | |
| struct | DtShaderEffectTextureData |
Public Types | |
| typedef std::vector < DtShaderEffectTextureData > | TextureDataPtrVector |
Public Member Functions | |
| virtual | ~DtShaderEffect () |
| DtShaderEffect ()=delete | |
| DtShaderEffect (const DtShaderEffect &)=delete | |
| DtShaderEffect & | operator= (const DtShaderEffect &)=delete |
| virtual void | initializeEffect (const std::vector< osg::StateSet * > &statesets, DtIndirectTextureProcessor *textureProcessor, DtOsgRenderer &osgRenderer) |
| virtual void | registerWeatherEffectsObject (DtOsgWeatherEffectsObject *weatherEffectsObject)=0 |
| virtual void | updateTextureUniforms (const osg::GraphicsContext *graphicsContext) |
| virtual void | setCameraLocation (const DtVector &location) |
| virtual void | setWindSpeed (float speed) |
| virtual void | setWindDirection (float direction) |
| virtual void | setEffectDirty (bool dirty) |
| virtual bool | effectDirty () |
| virtual void | updateImGui ()=0 |
| virtual void | updateUniforms ()=0 |
| virtual void | releaseGLObjects (osg::State *state) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Protected Member Functions | |
| DtShaderEffect (DtDe &de) | |
| virtual int | loadShaderEffectTexture (const std::string &filename, const std::string &uniformName) |
| virtual int | addShaderEffectTexture (osg::Texture *shaderEffectTexture, const std::string &uniformName) |
Protected Attributes | |
| DtDe & | myDe |
| TextureDataPtrVector | myShaderEffectTextures |
| DtIndirectTextureProcessor * | myTextureProcessor |
| bool | myEffectDirty |
| typedef std::vector<DtShaderEffectTextureData> makVrv::DtShaderEffect::TextureDataPtrVector |
|
virtual |
DTOR.
|
delete |
unimplemented private default constructor
|
delete |
Copy Constructor not implemented – Copy not allowed.
|
protected |
constructor
|
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 in makVrv::DtShaderEffectSnow, and makVrv::DtShaderEffectRain.
|
pure virtual |
called by the DtOsgWeatherEffectsObject constructor to register itself when it is created.
Implemented in makVrv::DtShaderEffectSnow, and makVrv::DtShaderEffectRain.
|
virtual |
update the texture uniforms for this shader effect
|
virtual |
sets a location for localized effects.
Reimplemented in makVrv::DtShaderEffectSnow, and makVrv::DtShaderEffectRain.
|
virtual |
Sets the wind speed.
| speed | The wind speed in meters per second. |
Reimplemented in makVrv::DtShaderEffectSnow.
|
virtual |
Sets the wind direction.
| direction | The wind direction in radians from true north (clockwise). |
Reimplemented in makVrv::DtShaderEffectSnow.
|
virtual |
set this effect dirty so that it will be reinitialized before the next time it is run
|
virtual |
get if this effect is dirty
|
pure virtual |
update the imgui widgets and readback any changes from them
Implemented in makVrv::DtShaderEffectSnow, and makVrv::DtShaderEffectRain.
|
pure virtual |
update the uniforms that may need to be changed based on the imgui or regular gui inputs.
Implemented in makVrv::DtShaderEffectSnow, and makVrv::DtShaderEffectRain.
|
virtual |
release the gl objects for this class
Reimplemented in makVrv::DtShaderEffectSnow, and makVrv::DtShaderEffectRain.
|
protectedvirtual |
load a texture from a file and set it up as a bindless texture with the address in the specified uniform name
|
protectedvirtual |
add a texture and set it up as a bindless texture with the address in the specified uniform name
|
protected |
|
protected |
|
protected |
|
protected |