]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.h
Set both min and mag filters when exporting textures
[libs/gl.git] / source / ambientocclusion.h
index b6daa776d6af8804f5cf1186cb7974d1b5f3783d..419189942fad13e4b48b9223ef09bce0dc214233 100644 (file)
@@ -20,6 +20,25 @@ http://en.wikipedia.org/wiki/Screen_Space_Ambient_Occlusion
 */
 class AmbientOcclusion: public PostProcessor
 {
+public:
+       struct Template: PostProcessor::Template
+       {
+               class Loader: public DataFile::DerivedObjectLoader<Template, PostProcessor::Template::Loader>
+               {
+               public:
+                       Loader(Template &);
+               };
+
+               unsigned n_samples;
+               float occlusion_radius;
+               float darkness;
+               float edge_depth_threshold;
+
+               Template();
+
+               virtual AmbientOcclusion *create(unsigned, unsigned) const;
+       };
+
 private:
        Texture2D rotate_lookup;
        RenderTarget occlude_target;
@@ -38,6 +57,7 @@ private:
 public:
        void set_n_samples(unsigned);
        void set_occlusion_radius(float);
+       void set_edge_depth_threshold(float);
 
        // Deprecated
        void set_depth_ratio(float);