]> git.sesse.net Git - movit/blob - mix_effect.cpp
Send shader compile log to stderr instead of stdout.
[movit] / mix_effect.cpp
1 #include "mix_effect.h"
2 #include "util.h"
3
4 using namespace std;
5
6 MixEffect::MixEffect()
7         : strength_first(0.5f), strength_second(0.5f)
8 {
9         register_float("strength_first", &strength_first);
10         register_float("strength_second", &strength_second);
11 }
12
13 string MixEffect::output_fragment_shader()
14 {
15         return read_file("mix_effect.frag");
16 }