![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/GlScreenSpaceAmbientOcclusion.h>
Post-processing filter implementing Screen Space Ambient Occlusion (SSAO). More...
Post-processing filter implementing Screen Space Ambient Occlusion (SSAO).
SSAO is a post-processing effect providing an approximation of global illumination and improving depth perception for opaque scenes. However, semi-transparent surfaces will produce rendering artifacts in which case you may decide to disable it.
Public Member Functions | |
void | apply (const GL::Texture &inputColorTex, const GL::Texture &inputDepthTex, const GL::ViewState &viewState) |
Applies depth darkening to the given input textures and renders the result directly to the screen. | |
double | strength () const |
Returns the strength of the SSAO effect in [0..1] range. | |
void | setStrength (double value) |
Sets the strength of the SSAO effect in [0..1] range. | |
double | occlusionRadius () const |
Returns the maximum distance (mm) for two fragments to occlude each other. | |
void | setOcclusionRadius (double value) |
Sets the maximum distance (mm) for two fragments to occlude each other. | |
void | configure (const Properties *) override |
Configure this object instance by de-serializing the given Properties. | |
void | configuration (Properties *) const override |
Serialize the current object configuration into the given Properties object. | |
![]() | |
virtual void | configureDefaults () |
Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
void | registerParameter (ParameterBase *param) |
Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
void | unregisterParameter (const ParameterBase *param) |
Remove the given Parameter or SubProperty from the list of registered parameters. | |
Configurable (const Configurable &rhs) | |
Configurable (Configurable &&rhs) noexcept | |
Configurable & | operator= (const Configurable &) |
Configurable & | operator= (Configurable &&) noexcept |
Additional Inherited Members | |
![]() | |
Signal | signalParametersChanged |
Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
![]() | |
std::vector< Param > | m_params |
List of all registered Parameter and SubProperty instances. | |
void apply | ( | const GL::Texture & | inputColorTex, |
const GL::Texture & | inputDepthTex, | ||
const GL::ViewState & | viewState ) |
Applies depth darkening to the given input textures and renders the result directly to the screen.
If you have an active FBO with a texture attached, it will render to that.
inputColorTex | Input color image, must not be 0. |
inputDepthTex | Input depth image, must not be 0. |
|
overridevirtual |
Configure this object instance by de-serializing the given Properties.
The default implementation will do so automatically for all registered Parameter and SubProperty instances.
Reimplemented from Configurable.
|
overridevirtual |
Serialize the current object configuration into the given Properties object.
The default implementation will do so automatically for all registered Parameter and SubProperty instances.
Reimplemented from Configurable.