![]() |
VR-Forces 5.0.3 Developer's Guide
|
DtShaderEffectManager injects custom shaders into the scenes, uses DtShaderEffect objects to add rendering effects to the ground. Currently has effects for rain and snow but more could be added for ice, sand, etc...

Classes | |
| struct | DtShaderEffectPerChannelData |
| class | TextureAddressJob |
Static Public Member Functions | |
| static DtShaderEffectManager & | instance (DtDe &de) |
| static const std::string & | theClassName () |
Protected Types | |
| typedef std::set < DtShaderEffect * > | ShaderEffectSet |
| typedef std::map < osg::observer_ptr < osg::Camera > , DtShaderEffectPerChannelData * > | PerChannelDataMap |
| typedef osg::ref_ptr < osg::CoordinateSystemNode > | CoordinateSystemNodeRef |
Protected Member Functions | |
| DtShaderEffectManager (DtDe &de) | |
| virtual void | updateImGui () |
| virtual void | updateUniforms () |
| virtual DtShaderEffectPerChannelData & | getOrCreatePerChannelData (osg::Camera *camera) |
| virtual void | flushInvalidChannels () |
|
protected |
|
protected |
|
protected |
|
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
|
virtual |
called by the main thread job periodically to check if the texture has been assigned an address.
|
virtual |
create the main thread job, wrapper function for the call to new so it can be overridden if we need to change the job class
|
virtual |
called by DtOsgRenderer::update(), updates the per frame uniforms for the shader effects and sets up IMGui
|
virtual |
called by DtOsgChannel::update(), updates the per channel uniforms
|
virtual |
called by the DtOsgWeatherEffectsObject constructor to register itself when it is created.
|
virtual |
called when the signal_reloadShader is triggered. Marks the effect dirty so it can be recreated
|
virtual |
handle a wind speed changed signal
|
virtual |
handle a wind direction changed signal
|
virtual |
Use to get the local settings for the weather effects. Currently only has snow parameters in it.
|
virtual |
Use to get the local settings for the weather effects. Currently only has snow parameters in it.
|
virtual |
release the gl objects for this class
|
virtual |
are there any dirty effects for pass camera
|
static |
Get/create instance of sky object manager.
|
static |
Get the name this class is registered by.
|
protectedvirtual |
update the imgui widgets and readback any changes from them
|
protectedvirtual |
update the uniforms that may need to be changed based on the imgui or regular gui inputs.
|
protectedvirtual |
gets or creates the data associated with a channel
|
protectedvirtual |
check if the channel still is valid. If not then destroy the corrisponding shader effects
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |