1 #ifndef _VIGNETTE_EFFECT_H
2 #define _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).
9 class VignetteEffect : public Effect {
12 std::string output_fragment_shader();
14 void set_uniforms(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
18 float radius, inner_radius;
21 #endif // !defined(_VIGNETTE_EFFECT_H)