]> git.sesse.net Git - movit/blob - mix_effect.h
Add .d files to .gitignore.
[movit] / mix_effect.h
1 #ifndef _MIX_EFFECT_H
2 #define _MIX_EFFECT_H 1
3
4 // Combine two images: a*x + b*y. (If you set a within [0,1] and b=1-a, you will get a fade.)
5
6 #include "effect.h"
7
8 class MixEffect : public Effect {
9 public:
10         MixEffect();
11         std::string output_fragment_shader();
12
13         virtual bool needs_srgb_primaries() const { return false; }
14         virtual unsigned num_inputs() const { return 2; }
15
16 private:
17         float strength_first, strength_second;
18 };
19
20 #endif // !defined(_MIX_EFFECT_H)