X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=glow_effect.cpp;h=2cc6d0101478ef508e8c86da729935cf5b03ce14;hp=064cdac99950e561d9817f4d1115f252451e067b;hb=0d58598f7c593c34de04ec1a0e4849f5cfb44792;hpb=9447b2d234394c1d966f77ed87271a3625a81cdd diff --git a/glow_effect.cpp b/glow_effect.cpp index 064cdac..2cc6d01 100644 --- a/glow_effect.cpp +++ b/glow_effect.cpp @@ -1,12 +1,14 @@ -#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" +using namespace std; + GlowEffect::GlowEffect() : blur(new BlurEffect), cutoff(new HighlightCutoffEffect), @@ -35,7 +37,7 @@ void GlowEffect::rewrite_graph(EffectChain *graph, Node *self) self->disabled = true; } -bool GlowEffect::set_float(const std::string &key, float value) { +bool GlowEffect::set_float(const string &key, float value) { if (key == "blurred_mix_amount") { return mix->set_float("strength_second", value); } @@ -51,7 +53,7 @@ HighlightCutoffEffect::HighlightCutoffEffect() register_float("cutoff", &cutoff); } -std::string HighlightCutoffEffect::output_fragment_shader() +string HighlightCutoffEffect::output_fragment_shader() { return read_file("highlight_cutoff_effect.frag"); }