]> git.sesse.net Git - movit/blobdiff - vignette_effect.h
Mark some appropriate effects as not needing sRGB primaries, and expand the comment...
[movit] / vignette_effect.h
index b8e0f68c7f1c5cfe16bc82fef2d9c5abcb9fd83f..2567e83c38844be7415a2428da01d1a4895dc93a 100644 (file)
@@ -1,6 +1,9 @@
 #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 {
@@ -8,7 +11,9 @@ public:
        VignetteEffect();
        std::string output_fragment_shader();
 
-       void set_uniforms(GLuint glsl_program_num, const std::string &prefix);
+       virtual bool needs_srgb_primaries() const { return false; }
+
+       void set_uniforms(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
 
 private:
        Point2D center;