]> git.sesse.net Git - movit/blob - mix_effect.cpp
There's no need to #undef PREFIX, since we do the token pasting ourselves.
[movit] / mix_effect.cpp
1 #include "mix_effect.h"
2 #include "util.h"
3
4 using namespace std;
5
6 namespace movit {
7
8 MixEffect::MixEffect()
9         : strength_first(0.5f), strength_second(0.5f)
10 {
11         register_float("strength_first", &strength_first);
12         register_float("strength_second", &strength_second);
13 }
14
15 string MixEffect::output_fragment_shader()
16 {
17         return read_file("mix_effect.frag");
18 }
19
20 }  // namespace movit