mask: add invert option

This commit is contained in:
itsmattkc
2022-09-23 16:58:49 -07:00
parent 825b06f7a7
commit d5e12eb091
3 changed files with 32 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
// Input texture
uniform sampler2D tex_in;
// Input texture coordinate
in vec2 ove_texcoord;
out vec4 frag_color;
void main() {
vec4 color = texture(tex_in, ove_texcoord);
color.rgb = 1.0 - color.rgb;
frag_color = color;
}