X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fambientocclusion.h;h=6c2c5d7eea938daa6be0e6e5ce2387dd2a361660;hp=e7829c181dce39bce8c74f69a631a56fcc9990b0;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hpb=9f5f027d1c93e541a12b8e4c04bd25b11edbe132 diff --git a/source/ambientocclusion.h b/source/ambientocclusion.h index e7829c18..6c2c5d7e 100644 --- a/source/ambientocclusion.h +++ b/source/ambientocclusion.h @@ -32,6 +32,7 @@ public: unsigned n_samples; float occlusion_radius; float darkness; + float edge_depth_threshold; Template(); @@ -45,7 +46,9 @@ private: Program occlude_shader; Program combine_shader; mutable ProgramData shdata; - const Mesh &quad; + RefPtr quad; + RefPtr linear_sampler; + RefPtr nearest_sampler; public: AmbientOcclusion(unsigned, unsigned, float = 1.0f); @@ -56,9 +59,7 @@ private: public: void set_n_samples(unsigned); void set_occlusion_radius(float); - - // Deprecated - void set_depth_ratio(float); + void set_edge_depth_threshold(float); void set_darkness(float);