#include "mesh.h"
#include "postprocessor.h"
#include "texture2d.h"
-#include "texturing.h"
#include "program.h"
#include "programdata.h"
#include "rendertarget.h"
Template();
- virtual Bloom *create(unsigned, unsigned) const;
+ virtual Bloom *create(Resources &, unsigned, unsigned) const;
};
private:
RenderTarget *target[2];
ProgramData common_shdata;
- Program blur_shader;
+ const Program &blur_shader;
ProgramData blur_shdata[2];
- Program combine_shader;
- Texturing combine_texturing;
- RefPtr<Mesh> quad;
- RefPtr<Sampler> nearest_sampler;
- RefPtr<Sampler> linear_sampler;
+ const Program &combine_shader;
+ const Mesh &quad;
+ const Sampler &nearest_sampler;
+ const Sampler &linear_sampler;
public:
- Bloom(unsigned, unsigned);
+ Bloom(Resources &, unsigned, unsigned);
~Bloom();
/** Sets the σ value of the gaussian blur. Values much larger than 4.0 are