]> git.sesse.net Git - movit/blobdiff - header.frag
In ResampleEffect, precompute the Lanczos function into a table.
[movit] / header.frag
index 68d966b15fee434dce1a8f98c2b8d3ab60a9357f..44ce5b4238d3478cb073cc2b015098c2a2e7d578 100644 (file)
@@ -1,9 +1,15 @@
-uniform sampler2D input_tex;
+#ifdef GL_ES
+precision highp float;
+#endif
+
+#ifdef GL_EXT_gpu_shader4
+// We sometimes want round().
+#extension GL_EXT_gpu_shader4 : enable
+#endif
+
 varying vec2 tc;
 
-vec4 read_input(vec2 tc)
+vec4 tex2D(sampler2D s, vec2 coord)
 {
-       return texture2D(input_tex, tc.st);
+       return texture2D(s, coord);
 }
-
-#define LAST_INPUT read_input