X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=alpha_multiplication_effect.h;h=f342719c5987b0e3304e5b0782811829b3680faa;hp=c64f2dce050d075f4230d9beca8841f173fb7ce0;hb=2fd06b9c44225d1e740cb2de08a9dfa5c9cd0031;hpb=caa05550e868db406e4b54e69d60b5573f59cb60 diff --git a/alpha_multiplication_effect.h b/alpha_multiplication_effect.h index c64f2dc..f342719 100644 --- a/alpha_multiplication_effect.h +++ b/alpha_multiplication_effect.h @@ -1,15 +1,22 @@ -#ifndef _ALPHA_MULTIPLICATION_EFFECT_H -#define _ALPHA_MULTIPLICATION_EFFECT_H 1 +#ifndef _MOVIT_ALPHA_MULTIPLICATION_EFFECT_H +#define _MOVIT_ALPHA_MULTIPLICATION_EFFECT_H 1 // Convert postmultiplied alpha to premultiplied alpha, simply by multiplying. +#include + #include "effect.h" +namespace movit { + class AlphaMultiplicationEffect : public Effect { public: AlphaMultiplicationEffect() {} virtual std::string effect_type_id() const { return "AlphaMultiplicationEffect"; } std::string output_fragment_shader(); + virtual bool one_to_one_sampling() const { return true; } }; -#endif // !defined(_ALPHA_MULTIPLICATION_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_ALPHA_MULTIPLICATION_EFFECT_H)