]> git.sesse.net Git - movit/blob - lift_gamma_gain_effect.cpp
149cb4463931dc9836df4360dd35a2480ea3d0fd
[movit] / lift_gamma_gain_effect.cpp
1 #include "lift_gamma_gain_effect.h"
2 #include "util.h"
3
4 LiftGammaGainEffect::LiftGammaGainEffect()
5         : lift(0.0f, 0.0f, 0.0f),
6           gamma(1.0f, 1.0f, 1.0f),
7           gain(1.0f, 1.0f, 1.0f),
8           saturation(1.0f)
9 {
10         register_vec3("lift", (float *)&lift);
11         register_vec3("gamma", (float *)&gamma);
12         register_vec3("gain", (float *)&gain);
13         register_float("saturation", &saturation);
14 }
15
16 std::string LiftGammaGainEffect::output_glsl()
17 {
18         return read_file("lift_gamma_gain_effect.glsl");
19 }