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).
14 class VignetteEffect : public Effect {
17 virtual std::string effect_type_id() const { return "VignetteEffect"; }
18 std::string output_fragment_shader();
20 virtual bool needs_srgb_primaries() const { return false; }
21 virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
23 virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height);
24 void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
27 Point2D center, aspect_correction;
28 float radius, inner_radius;
33 #endif // !defined(_MOVIT_VIGNETTE_EFFECT_H)