4a5db9e178d53abbdc0c22a76a3c0c439baab564
[movit] / gamma_expansion_effect.frag
1 // Expand sRGB gamma curve.
2
3 vec4 FUNCNAME(vec2 tc) {
4         vec4 x = LAST_INPUT(tc);
5
6         x.r = texture1D(PREFIX(expansion_curve_tex), x.r).x;
7         x.g = texture1D(PREFIX(expansion_curve_tex), x.g).x;
8         x.b = texture1D(PREFIX(expansion_curve_tex), x.b).x;
9
10         return x;
11 }