![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/GlDepthDarkening.h>
Implementation of the Depth Darkening technique for a simple screen-space ambient occlusion effect. More...
Implementation of the Depth Darkening technique for a simple screen-space ambient occlusion effect.
Public Member Functions | |
GlDepthDarkening () | |
Constructor. | |
~GlDepthDarkening () | |
Destructor. | |
void | apply (const GlImage *inputColorTex, const GlImage *inputDepthTex) |
Applies depth darkening to the given input textures and renders the result directly to the screen. | |
void | setFuzziness (float value) |
Sets the fuzziness parameter. Defines the radius of the Gaussian blur. | |
void | setStrength (float value) |
Sets the strength of the depth darkening effect. | |
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. |