]> 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 82c648cf7b3f834ee876b8dbb89dac3150f4820f..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,6 +11,8 @@ public:
        VignetteEffect();
        std::string output_fragment_shader();
 
+       virtual bool needs_srgb_primaries() const { return false; }
+
        void set_uniforms(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
 
 private: