![]() |
VR-Forces 4.10 Class Documentation
|
DtShaderEffect injects custom shaders into the scenes, There are derrived classes of this for snow and rain on the ground effects. More...

Classes | |
| struct | DtShaderEffectTextureData |
| Structure for holding per texture data for bindless textures. More... | |
Public Types | |
| typedef std::vector < DtShaderEffectTextureData > | TextureDataPtrVector |
Public Member Functions | |
| 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 | initializeEffect (const std::vector< osg::StateSet * > &statesets, DtIndirectTextureProcessor *textureProcessor, DtOsgRenderer &osgRenderer) |
| initializes or reinitializes the effects. More... | |
| virtual void | registerWeatherEffectsObject (DtOsgWeatherEffectsObject *weatherEffectsObject)=0 |
| called by the DtOsgWeatherEffectsObject constructor to register itself when it is created. More... | |
| virtual void | updateTextureUniforms (unsigned int contextId) |
| update the texture uniforms for this shader effect More... | |
| virtual void | setCameraLocation (const DtVector &location) |
| sets a location for localized effects. 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... | |
| virtual void | updateImGui ()=0 |
| update the imgui widgets and readback any changes from them More... | |
| virtual void | updateUniforms ()=0 |
| update the uniforms that may need to be changed based on the imgui or regular gui inputs. More... | |
| virtual void | releaseGLObjects (osg::State *state) |
| release the gl objects for this class More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Protected Member Functions | |
| 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 | |
| DtDe & | myDe |
| TextureDataPtrVector | myShaderEffectTextures |
| bool | myEffectDirty |
DtShaderEffect injects custom shaders into the scenes, There are derrived classes of this for snow and rain on the ground effects.
| 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.
update the texture uniforms for this shader effect
|
virtual |
sets a location for localized effects.
Reimplemented in makVrv::DtShaderEffectRain.
|
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 |