#ifndef _VIGNETTE_EFFECT_H
#define _VIGNETTE_EFFECT_H 1
+// A circular vignette, falling off as cosĀ² of the distance from the center
+// (the classic formula for approximating a real lens).
+
#include "effect.h"
class VignetteEffect : public Effect {
public:
VignetteEffect();
- std::string output_glsl();
+ std::string output_fragment_shader();
- void set_uniforms(GLhandleARB glsl_program_num, const std::string &prefix);
+ void set_uniforms(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
private:
Point2D center;