1 #ifndef _MOVIT_VIGNETTE_EFFECT_H
2 #define _MOVIT_VIGNETTE_EFFECT_H 1
4 // A circular vignette, falling off as cosĀ² of the distance from the center
5 // (the classic formula for approximating a real lens).
12 class VignetteEffect : public Effect {
15 virtual std::string effect_type_id() const { return "VignetteEffect"; }
16 std::string output_fragment_shader();
18 virtual bool needs_srgb_primaries() const { return false; }
19 virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
21 void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
25 float radius, inner_radius;
28 #endif // !defined(_MOVIT_VIGNETTE_EFFECT_H)