]> git.sesse.net Git - movit/blobdiff - invert_effect.frag
Add tests to check that rewriting works, and that gamma conversions are or are not...
[movit] / invert_effect.frag
diff --git a/invert_effect.frag b/invert_effect.frag
new file mode 100644 (file)
index 0000000..78a5e7a
--- /dev/null
@@ -0,0 +1,7 @@
+// Used only during testing. Inverts its input.
+vec4 FUNCNAME(vec2 tc)
+{
+       vec4 rgba = INPUT(tc);
+       rgba.rgb = vec3(1.0) - rgba.rgb;
+       return rgba;
+}