]> git.sesse.net Git - movit/blobdiff - glow_effect.h
Add a new alpha handling method, INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK.
[movit] / glow_effect.h
index c0ac9ce5ee4163516ee2806557196447786099a7..abadb84a4cb332a10d45216d73a2fe6bfa2edc6c 100644 (file)
@@ -3,9 +3,6 @@
 
 // Glow: Cut out the highlights of the image (everything above a certain threshold),
 // blur them, and overlay them onto the original image.
-//
-// FIXME: This might be broken after MixEffect started working in premultiplied alpha.
-// We need to think about how this is going to work, and then add a test.
 
 #include "effect.h"
 
@@ -45,6 +42,8 @@ public:
        HighlightCutoffEffect();
        virtual std::string effect_type_id() const { return "HighlightCutoffEffect"; }
        std::string output_fragment_shader();
+       
+       virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
 
 private:
        float cutoff;