X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=glow_effect.cpp;h=86a3d7f407cf73c14066a6a1e9cbe2bef09afcc5;hp=a4775052d4503dbf7b6c0fc7f5b5d53ad584f811;hb=18fdebc534adc6b7a4c36b290b01d598bcb671bc;hpb=771acfe782f3052bb7326ee7f066ed78657754b4 diff --git a/glow_effect.cpp b/glow_effect.cpp index a477505..86a3d7f 100644 --- a/glow_effect.cpp +++ b/glow_effect.cpp @@ -1,10 +1,10 @@ -#include #include +#include -#include "glow_effect.h" #include "blur_effect.h" -#include "mix_effect.h" #include "effect_chain.h" +#include "glow_effect.h" +#include "mix_effect.h" #include "util.h" GlowEffect::GlowEffect() @@ -12,10 +12,10 @@ GlowEffect::GlowEffect() cutoff(new HighlightCutoffEffect), mix(new MixEffect) { - blur->set_float("radius", 20.0f); - mix->set_float("strength_first", 1.0f); - mix->set_float("strength_second", 1.0f); - cutoff->set_float("cutoff", 0.2f); + CHECK(blur->set_float("radius", 20.0f)); + CHECK(mix->set_float("strength_first", 1.0f)); + CHECK(mix->set_float("strength_second", 1.0f)); + CHECK(cutoff->set_float("cutoff", 0.2f)); } void GlowEffect::rewrite_graph(EffectChain *graph, Node *self)