]> git.sesse.net Git - movit/blob - alpha_division_effect.h
Put the resample alpha handling on the right effect.
[movit] / alpha_division_effect.h
1 #ifndef _MOVIT_ALPHA_DIVISION_EFFECT_H
2 #define _MOVIT_ALPHA_DIVISION_EFFECT_H 1
3
4 // Convert premultiplied alpha to postmultiplied alpha, simply by multiplying.
5
6 #include <string>
7
8 #include "effect.h"
9
10 class AlphaDivisionEffect : public Effect {
11 public:
12         AlphaDivisionEffect() {}
13         virtual std::string effect_type_id() const { return "AlphaDivisionEffect"; }
14         std::string output_fragment_shader();
15 };
16
17 #endif // !defined(_MOVIT_ALPHA_DIVISION_EFFECT_H)