]> git.sesse.net Git - movit/blobdiff - fs.glsl
Squash linear gamma back into the sRGB curve at the end.
[movit] / fs.glsl
diff --git a/fs.glsl b/fs.glsl
index 2637869311966c86760bbe825ca86110649e5729..25f20dbc795d9174bae3f0042839ef160f9e8630 100644 (file)
--- a/fs.glsl
+++ b/fs.glsl
@@ -1,6 +1,6 @@
 #version 120
 uniform sampler2D tex;
 #version 120
 uniform sampler2D tex;
-varying vec4 tc;
+varying vec2 tc;
 uniform vec3 lift, gain;
 uniform vec3 gain_pow_inv_gamma, inv_gamma_22;
 uniform float saturation;
 uniform vec3 lift, gain;
 uniform vec3 gain_pow_inv_gamma, inv_gamma_22;
 uniform float saturation;
@@ -40,7 +40,7 @@ vec3 from_linear(vec3 x) {
 
 void main()
 {
 
 void main()
 {
-       vec3 x = texture2D(tex, tc.st, -30.0f).rgb;
+       vec3 x = texture2D(tex, tc).rgb;
        x = to_linear(x);
 
        // do lift in nonlinear space (the others don't care)
        x = to_linear(x);
 
        // do lift in nonlinear space (the others don't care)