X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vignette_effect.h;h=582e67687ef42bf67699980337ad71d430f5259a;hb=b564238fa1293c01c77bcabe7b2de267f146ab24;hp=737a834cb68556a063404063a0e92a18f5be88c9;hpb=cfc161e0289c2169d4835c48751ff56b97355eb2;p=movit diff --git a/vignette_effect.h b/vignette_effect.h index 737a834..582e676 100644 --- a/vignette_effect.h +++ b/vignette_effect.h @@ -4,7 +4,7 @@ // A circular vignette, falling off as cos² of the distance from the center // (the classic formula for approximating a real lens). -#include +#include #include #include "effect.h" @@ -19,6 +19,7 @@ public: virtual bool needs_srgb_primaries() const { return false; } virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; } + virtual bool one_to_one_sampling() const { return true; } virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height); void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);