]> git.sesse.net Git - movit/blobdiff - mix_effect.cpp
Add a glow effect, and an effect that linearly mixes two sources (because glow needed...
[movit] / mix_effect.cpp
diff --git a/mix_effect.cpp b/mix_effect.cpp
new file mode 100644 (file)
index 0000000..0f80a8f
--- /dev/null
@@ -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");
+}