X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=alpha_division_effect.h;fp=alpha_division_effect.h;h=e700112fb2a909c108c2ddb48ccbb3b96d5ab0ed;hp=0000000000000000000000000000000000000000;hb=caa05550e868db406e4b54e69d60b5573f59cb60;hpb=96591ba1b5bffa57724fa90e13d1f2cdc810ccd5 diff --git a/alpha_division_effect.h b/alpha_division_effect.h new file mode 100644 index 0000000..e700112 --- /dev/null +++ b/alpha_division_effect.h @@ -0,0 +1,15 @@ +#ifndef _ALPHA_DIVISION_EFFECT_H +#define _ALPHA_DIVISION_EFFECT_H 1 + +// Convert premultiplied alpha to postmultiplied alpha, simply by multiplying. + +#include "effect.h" + +class AlphaDivisionEffect : public Effect { +public: + AlphaDivisionEffect() {} + virtual std::string effect_type_id() const { return "AlphaDivisionEffect"; } + std::string output_fragment_shader(); +}; + +#endif // !defined(_ALPHA_DIVISION_EFFECT_H)