X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=deconvolution_sharpen_effect.h;h=a0b405a6c7f829f5d94cc4bf3ca3429c85968e45;hp=d0987f200b5c4e0284e3d295c3ee2d540f269d23;hb=7af4d1b54ba141fdb74cd13ddc6110708855d157;hpb=ebe6d6ba984b2fb77b365aeacd1f30d4da59964b diff --git a/deconvolution_sharpen_effect.h b/deconvolution_sharpen_effect.h index d0987f2..a0b405a 100644 --- a/deconvolution_sharpen_effect.h +++ b/deconvolution_sharpen_effect.h @@ -29,6 +29,9 @@ public: virtual std::string effect_type_id() const { return "DeconvolutionSharpenEffect"; } std::string output_fragment_shader(); + // Samples a lot of times from its input. + virtual bool needs_texture_bounce() const { return true; } + virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height) { this->width = width; @@ -36,6 +39,7 @@ public: } void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num); + virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; } private: // Input size.