Easy3D 2.5.3
|
Traditional Screen Space Ambient Occlusion (SSAO) technique. More...
#include <easy3d/renderer/ambient_occlusion.h>
Public Member Functions | |
AmbientOcclusion (Camera *cam) | |
Constructor. More... | |
void | set_radius (float r) |
Sets the sample radius (in pixels). Typical value is in range [0, 4]. | |
float | radius () const |
Returns the sample radius. | |
void | set_bias (float b) |
Sets the bias. Default value is 0.005. | |
float | bias () const |
Returns the bias. | |
virtual unsigned int | generate (const std::vector< Model * > &models) |
Generates the SSAO texture. More... | |
unsigned int | ssao_texture () const |
Returns the generated SSAO texture ID. | |
Traditional Screen Space Ambient Occlusion (SSAO) technique.
Optimization tip: rendering with multi-effects (e.g., shadowing, SSAO) can benefit from using a shared geometry pass.
|
explicit |
Constructor.
cam | The camera used in the view |
|
virtual |
Generates the SSAO texture.