-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_GL_BLOOM_H_
#define MSP_GL_BLOOM_H_
#include "mesh.h"
#include "postprocessor.h"
#include "texture2d.h"
+#include "texturing.h"
#include "program.h"
#include "programdata.h"
Framebuffer fbo;
Texture2D tex[2];
Program blur_shader;
- ProgramData blur_shdata[2];
+ ProgramData blur_shdata_common;
+ ProgramData blur_shdata_x;
+ ProgramData blur_shdata_y;
Program combine_shader;
ProgramData combine_shdata;
+ Texturing combine_texturing;
Mesh quad;
public:
values mean more blurriness. */
void set_strength(float);
- virtual void render(const Texture2D &);
+ virtual void render(const Texture2D &, const Texture2D &);
};
} // namespace GL