X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=glow_effect.h;h=abadb84a4cb332a10d45216d73a2fe6bfa2edc6c;hp=c0ac9ce5ee4163516ee2806557196447786099a7;hb=7af4d1b54ba141fdb74cd13ddc6110708855d157;hpb=b10c546f579c7ccb5939161e61a71cd18a3f9bbd diff --git a/glow_effect.h b/glow_effect.h index c0ac9ce..abadb84 100644 --- a/glow_effect.h +++ b/glow_effect.h @@ -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;