]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.h
Use RenderTarget objects to manage FBOs in postprocessors
[libs/gl.git] / source / ambientocclusion.h
index aae5fb29b8c45449759e590da4d4bced27f0dfd5..fc930bad80139fa6eafbb26d5bb49bd9639a6365 100644 (file)
@@ -6,6 +6,7 @@
 #include "postprocessor.h"
 #include "program.h"
 #include "programdata.h"
+#include "rendertarget.h"
 #include "texture2d.h"
 #include "texturing.h"
 
@@ -20,9 +21,8 @@ http://en.wikipedia.org/wiki/Screen_Space_Ambient_Occlusion
 class AmbientOcclusion: public PostProcessor
 {
 private:
-       Texture2D occlusion;
        Texture2D rotate_lookup;
-       Framebuffer fbo;
+       RenderTarget occlude_target;
        Texturing occlude_texturing;
        Program occlude_shader;
        ProgramData occlude_shdata;