]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/ambientocclusion.h
Split the Light class into subclasses by light type
[libs/gl.git] / source / effects / ambientocclusion.h
index 61d4d4f3e44a48daf94468d684d26f14e4b19ba5..fd3b6574cbbdfec1b83b2244d1e5e744cf003532 100644 (file)
@@ -1,17 +1,15 @@
 #ifndef MSP_GL_AMBIENTOCCLUSION_H_
 #define MSP_GL_AMBIENTOCCLUSION_H_
 
-#include "framebuffer.h"
-#include "mesh.h"
 #include "postprocessor.h"
-#include "program.h"
 #include "programdata.h"
 #include "rendertarget.h"
-#include "texture2d.h"
 
 namespace Msp {
 namespace GL {
 
+class Program;
+
 /**
 Implements screen-space ambient occlusion.
 
@@ -54,7 +52,7 @@ public:
 
 private:
        static const Texture2D &get_or_create_rotate_lookup();
-       static float random(unsigned &);
+       static float radical_inverse(unsigned);
 
 public:
        void set_n_samples(unsigned);
@@ -64,6 +62,8 @@ public:
        void set_darkness(float);
 
        virtual void render(Renderer &, const Texture2D &, const Texture2D &);
+
+       virtual void set_debug_name(const std::string &);
 };
 
 } // namespace GL