Hyprland-dotfiles/hypr/shaders/invert-colors.glsl

9 lines
227 B
Plaintext
Raw Normal View History

2024-05-22 11:06:47 -04:00
precision highp float;
varying vec2 v_texcoord;
uniform sampler2D tex;
void main() {
vec4 pixColor = texture2D(tex, v_texcoord);
gl_FragColor = vec4(1.0 - pixColor.r, 1.0 - pixColor.g, 1.0 - pixColor.b, pixColor.a);
}