Hyprland-dotfiles/hypr/shaders/invert-colors.glsl
Stephan Raabe 55bf15494a Updates
2024-05-22 17:09:11 +02:00

9 lines
227 B
GLSL

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