]> git.sesse.net Git - movit/blob - saturation_effect.cpp
Rescale resampling weights so that the sum becomes one.
[movit] / saturation_effect.cpp
1 #define GL_GLEXT_PROTOTYPES 1
2
3 #include "saturation_effect.h"
4 #include "util.h"
5
6 using namespace std;
7
8 SaturationEffect::SaturationEffect()
9         : saturation(1.0f)
10 {
11         register_float("saturation", &saturation);
12 }
13
14 string SaturationEffect::output_fragment_shader()
15 {
16         return read_file("saturation_effect.frag");
17 }