Public Member Functions |
| | DtReverseDepthBuffer (DtDe &de, const std::string &postProcessType, bool handles2D) |
| | Constructor.
|
| virtual | ~DtReverseDepthBuffer () |
| | Destructor.
|
| virtual void | update (DtChannel *channel) |
| | Called once per frame from the DtPostProcessManager.
|
| | DtPostProcessor (const std::string &postProcessType, bool handles2D) |
| | CTOR.
|
| virtual | ~DtPostProcessor () |
| | DTOR.
|
| virtual void | setFragmentShaderSource (const char *source) |
| | Sets fragment shader source for this post-processor.
|
| virtual void | setVertexShaderSource (const char *source) |
| | Sets vertex shader source for this post-processor.
|
| virtual void | setFragmentShaderFile (const std::string &fileName) |
| | Sets fragment shader file for this post-processor.
|
| virtual void | setVertexShaderFile (const std::string &fileName) |
| | Sets vertex shader file for this post-processor.
|
| virtual void | setInputTexture (const DtChannel *channel, osg::Texture2D *texture) |
| | Sets the image that is postprocessed; this may be the 3D scene rendered to a texture, or the output texture of a chained post processor.
|
| virtual osg::Texture2D * | outputTexture () |
| | Gets the output texture of this post processor, for use in chaining processors together.
|
| virtual void | setIsFinalEffect (const DtChannel *channel, bool final) |
| | Called by the DtPostProcessManager to indicate if this is the last post processor in the chain, and should render to the framebuffer.
|
| virtual osg::Camera * | cameraForChannel (const DtChannel *channel) |
| | Gets the Camera node associated with this effect and channel.
|
| virtual void | releaseGLObjects () |
| virtual bool | hasEffect (std::string effect) |
| | Does this post processor support this effect?
|
| virtual bool | effectEnabled (std::string effect) |
| | Is this effect (post processor sub-component) enabled?
|
| virtual bool | anyEffectEnabled () |
| | Are any effects enabled?
|
| virtual std::list< std::string > | supportedEffects () |
| | Get a list of supported effects for this post processor.
|
| virtual bool | handles2D () const |
| | Retrieves whether this post processor should be used in 2D orthographic views, as specified in its constructor.
|
| virtual const std::string & | type () const |
| | Gets the type of the post processor.
|
| virtual bool | postProcessorEnabled () const |
| | Is this post processor enabled?
|
| virtual bool | enableEffect (std::string effect) |
| | Enable a particular post processing technique For example, "wateroncamera" has techniques "rainsplash", "oceanspray", and "wavesplash".
|
| virtual bool | disableEffect (std::string effect) |
| virtual void | enablePostProcessor () |
| | Enable or disable the post processor.
|
| virtual void | disablePostProcessor () |
This class provides an OSG-specific implementation of camera depth of field.