X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=invert_effect.frag;fp=invert_effect.frag;h=78a5e7ae9461a1d5ce955a86b6c77ef61516f04a;hb=807c97809f0e7a11d1af600d562d8841370e7250;hp=0000000000000000000000000000000000000000;hpb=f0b80b6641dcc4a88398f4c20f4a38fb08fb3dc3;p=movit diff --git a/invert_effect.frag b/invert_effect.frag new file mode 100644 index 0000000..78a5e7a --- /dev/null +++ b/invert_effect.frag @@ -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; +}