]> git.sesse.net Git - movit/blobdiff - mix_effect.h
Fix a bug where intermediate phase outputs could get too low height.
[movit] / mix_effect.h
index 7342b90500538b10c08fb27840a3744a1a304cb7..c6739653b398b7cd9791af5361d32197dd3d8499 100644 (file)
@@ -1,13 +1,15 @@
 #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.)
+// Combine two images: a*x + b*y. If you set a within [0,1] and b=1-a,
+// you will get a fade; if not, you may get surprising results (consider alpha).
 
 #include "effect.h"
 
 class MixEffect : public Effect {
 public:
        MixEffect();
+       virtual std::string effect_type_id() const { return "MixEffect"; }
        std::string output_fragment_shader();
 
        virtual bool needs_srgb_primaries() const { return false; }