X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=gamma_expansion_effect.frag;fp=gamma_expansion_effect.frag;h=4a5db9e178d53abbdc0c22a76a3c0c439baab564;hp=0000000000000000000000000000000000000000;hb=2ced784c6599cb0b21427481ee17f4c8f6afdada;hpb=a04ce272078182de6bb49e5ea9834713f3d72cae diff --git a/gamma_expansion_effect.frag b/gamma_expansion_effect.frag new file mode 100644 index 0000000..4a5db9e --- /dev/null +++ b/gamma_expansion_effect.frag @@ -0,0 +1,11 @@ +// Expand sRGB gamma curve. + +vec4 FUNCNAME(vec2 tc) { + vec4 x = LAST_INPUT(tc); + + x.r = texture1D(PREFIX(expansion_curve_tex), x.r).x; + x.g = texture1D(PREFIX(expansion_curve_tex), x.g).x; + x.b = texture1D(PREFIX(expansion_curve_tex), x.b).x; + + return x; +}