3 #include "gamma_expansion_effect.h"
6 GammaExpansionEffect::GammaExpansionEffect()
7 : source_curve(GAMMA_LINEAR)
9 register_int("source_curve", (int *)&source_curve);
12 std::string GammaExpansionEffect::output_fragment_shader()
14 switch (source_curve) {
16 return read_file("identity.frag");
18 return read_file("gamma_expansion_effect_srgb.frag");
19 case GAMMA_REC_709: // and GAMMA_REC_601
20 return read_file("gamma_expansion_effect_rec709.frag");