]> git.sesse.net Git - movit/commitdiff
Add missing test shader.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 25 Nov 2017 11:53:06 +0000 (12:53 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 25 Nov 2017 11:53:12 +0000 (12:53 +0100)
downscale2x.comp [new file with mode: 0644]

diff --git a/downscale2x.comp b/downscale2x.comp
new file mode 100644 (file)
index 0000000..0417ad1
--- /dev/null
@@ -0,0 +1,10 @@
+// Used for testing only.
+
+layout(local_size_x = 1) in;
+
+void FUNCNAME()
+{
+       ivec2 tc = ivec2(gl_GlobalInvocationID.xy);
+       vec2 coord = NORMALIZE_TEXTURE_COORDS(vec2(tc.x, tc.y));
+       OUTPUT(tc, INPUT(vec2(coord.x - 0.125, coord.y + 0.25)));
+}