Files
oak-editor/app/shaders/invertrgb.frag
T
2022-09-23 16:58:49 -07:00

13 lines
237 B
GLSL

// 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;
}