X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fambientocclusion.h;h=419189942fad13e4b48b9223ef09bce0dc214233;hp=fc930bad80139fa6eafbb26d5bb49bd9639a6365;hb=HEAD;hpb=8ec12629c4808588b0eaef88147e22fa658ac990 diff --git a/source/ambientocclusion.h b/source/ambientocclusion.h deleted file mode 100644 index fc930bad..00000000 --- a/source/ambientocclusion.h +++ /dev/null @@ -1,46 +0,0 @@ -#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" -#include "texturing.h" - -namespace Msp { -namespace GL { - -/** -Implements screen-space ambient occlusion. - -http://en.wikipedia.org/wiki/Screen_Space_Ambient_Occlusion -*/ -class AmbientOcclusion: public PostProcessor -{ -private: - Texture2D rotate_lookup; - RenderTarget occlude_target; - Texturing occlude_texturing; - Program occlude_shader; - ProgramData occlude_shdata; - Texturing combine_texturing; - Program combine_shader; - ProgramData combine_shdata; - const Mesh &quad; - -public: - AmbientOcclusion(unsigned, unsigned, float); - - void set_depth_ratio(float); - void set_darkness(float); - - virtual void render(Renderer &, const Texture2D &, const Texture2D &); -}; - -} // namespace GL -} // namespace Msp - -#endif