X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=mix_effect.h;fp=mix_effect.h;h=7342b90500538b10c08fb27840a3744a1a304cb7;hp=0000000000000000000000000000000000000000;hb=ef7665d0d3854b3464800d8d7fef9a90f14d9a9f;hpb=1e2d23133575fc1cfeb14652e4b383883bf24512 diff --git a/mix_effect.h b/mix_effect.h new file mode 100644 index 0000000..7342b90 --- /dev/null +++ b/mix_effect.h @@ -0,0 +1,20 @@ +#ifndef _MIX_EFFECT_H +#define _MIX_EFFECT_H 1 + +// Combine two images: a*x + b*y. (If you set a within [0,1] and b=1-a, you will get a fade.) + +#include "effect.h" + +class MixEffect : public Effect { +public: + MixEffect(); + std::string output_fragment_shader(); + + virtual bool needs_srgb_primaries() const { return false; } + virtual unsigned num_inputs() const { return 2; } + +private: + float strength_first, strength_second; +}; + +#endif // !defined(_MIX_EFFECT_H)