37 #ifndef H_OGF_SCENE_GRAPH_GFX_FULL_SCREEN_EFFECTS_AO_H
38 #define H_OGF_SCENE_GRAPH_GFX_FULL_SCREEN_EFFECTS_AO_H
40 #include <OGF/scene_graph_gfx/common/common.h>
73 return impl_->get_lightness();
80 impl_->set_lightness(value);
88 return impl_->get_contrast();
95 impl_->set_contrast(value);
102 gom_attribute(help,
"Size (in pixels) of the Gaussian blur kernel")
104 return impl_->get_blur_width();
111 impl_->set_blur_width(value);
118 gom_attribute(help,
"The higher, the better (but the slower !!)")
120 return impl_->get_nb_directions();
127 impl_->set_nb_directions(value);
134 gom_attribute(help,
"In 0.0 ... 1.0. The higher, the better (but the slower !!)")
135 double get_max_radius()
const {
136 return impl_->get_max_radius();
143 impl_->set_max_radius(x);
150 gom_attribute(help,
"> 1.0. The smaller, the better (but the slower !!)")
151 double get_step_mul()
const {
152 return impl_->get_step_mul();
159 impl_->set_step_mul(x);
Implementation of full screen effects.
GOM wrapper around AmbientOcclusionImpl.
void set_step_mul(double x)
Sets the multiplicative factor applied to each step when traversing from a pixel.
void set_max_radius(double x)
Sets the maximum radius around a pixel where ambient occlusion is computed.
FullScreenEffectImpl * implementation() override
Gets the implementation.
void set_contrast(index_t value)
Sets the contrast.
index_t get_contrast() const
Gets the contrast.
AmbientOcclusion(SceneGraph *scene_graph)
AmbientOcclusion constructor.
void set_nb_directions(index_t value)
Sets the number of directions.
void set_lightness(index_t value)
Sets the lightness.
void set_blur_width(index_t value)
Sets the size of the blurring kernel.
Represents the list of objects loaded in Graphite.
Implementation of AmbientOcclusion full screen effect.
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
Base classes for full screen effects.