Make the blur use the resize functionality, which also unbreaks the in-between sampli...
[movit] / vignette_effect.h
1 #ifndef _VIGNETTE_EFFECT_H
2 #define _VIGNETTE_EFFECT_H 1
3
4 // A circular vignette, falling off as cosĀ² of the distance from the center
5 // (the classic formula for approximating a real lens).
6
7 #include "effect.h"
8
9 class VignetteEffect : public Effect {
10 public:
11         VignetteEffect();
12         std::string output_fragment_shader();
13
14         virtual bool needs_srgb_primaries() const { return false; }
15
16         void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
17
18 private:
19         Point2D center;
20         float radius, inner_radius;
21 };
22
23 #endif // !defined(_VIGNETTE_EFFECT_H)