X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=glow_effect.h;h=91106e03b08927ab3498d784f3611b05e36aafa8;hp=8b21e521a9449979aae90ad7df14ef903f8c6b34;hb=5c97329dd35909847e2120b0b368b2723ffe5a44;hpb=771acfe782f3052bb7326ee7f066ed78657754b4 diff --git a/glow_effect.h b/glow_effect.h index 8b21e52..91106e0 100644 --- a/glow_effect.h +++ b/glow_effect.h @@ -1,14 +1,20 @@ -#ifndef _GLOW_EFFECT_H -#define _GLOW_EFFECT_H 1 +#ifndef _MOVIT_GLOW_EFFECT_H +#define _MOVIT_GLOW_EFFECT_H 1 // Glow: Cut out the highlights of the image (everything above a certain threshold), // blur them, and overlay them onto the original image. +#include +#include +#include + #include "effect.h" class BlurEffect; -class MixEffect; +class EffectChain; class HighlightCutoffEffect; +class MixEffect; +class Node; class GlowEffect : public Effect { public: @@ -42,9 +48,11 @@ 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; }; -#endif // !defined(_GLOW_EFFECT_H) +#endif // !defined(_MOVIT_GLOW_EFFECT_H)