X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=alpha_division_effect.h;h=92581710c0c739c418dbc342683f85be10b4e03a;hp=6fcc716d48bf93e180f8656f99af0a48b868a100;hb=39b6975420669958ed9f4013440aea415134a902;hpb=cfc161e0289c2169d4835c48751ff56b97355eb2 diff --git a/alpha_division_effect.h b/alpha_division_effect.h index 6fcc716..9258171 100644 --- a/alpha_division_effect.h +++ b/alpha_division_effect.h @@ -1,7 +1,7 @@ #ifndef _MOVIT_ALPHA_DIVISION_EFFECT_H #define _MOVIT_ALPHA_DIVISION_EFFECT_H 1 -// Convert premultiplied alpha to postmultiplied alpha, simply by multiplying. +// Convert postmultiplied alpha to premultiplied alpha, simply by dividing. #include @@ -12,8 +12,9 @@ namespace movit { class AlphaDivisionEffect : public Effect { public: AlphaDivisionEffect() {} - virtual std::string effect_type_id() const { return "AlphaDivisionEffect"; } - std::string output_fragment_shader(); + std::string effect_type_id() const override { return "AlphaDivisionEffect"; } + std::string output_fragment_shader() override; + bool one_to_one_sampling() const override { return true; } }; } // namespace movit