]> git.sesse.net Git - movit/blobdiff - texture1d.frag
In ResampleEffect, optimize the bilinear weights on a global scale.
[movit] / texture1d.frag
index 4f8b9813c0c4673550dccb5270a588bd366ffdc0..addf9008ef7c1bfe7889d0676ef48bbb74bff389 100644 (file)
@@ -1,7 +1,11 @@
-uniform sampler1D tex;
+#ifdef GL_ES
+precision highp float;
+#endif
+
+uniform sampler2D tex;
 varying vec2 tc;
 
 void main()
 {
-       gl_FragColor = texture1D(tex, tc.x);
+       gl_FragColor = texture2D(tex, tc);  // Second component is irrelevant.
 }