X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=mix_effect.cpp;fp=mix_effect.cpp;h=0f80a8f784ee1f2ed1575e9b784594dd728c4647;hp=0000000000000000000000000000000000000000;hb=ef7665d0d3854b3464800d8d7fef9a90f14d9a9f;hpb=1e2d23133575fc1cfeb14652e4b383883bf24512 diff --git a/mix_effect.cpp b/mix_effect.cpp new file mode 100644 index 0000000..0f80a8f --- /dev/null +++ b/mix_effect.cpp @@ -0,0 +1,14 @@ +#include "mix_effect.h" +#include "util.h" + +MixEffect::MixEffect() + : strength_first(0.5f), strength_second(0.5f) +{ + register_float("strength_first", &strength_first); + register_float("strength_second", &strength_second); +} + +std::string MixEffect::output_fragment_shader() +{ + return read_file("mix_effect.frag"); +}