Files
nixos/modules/desktop/shaders/rbinvert.frag
2026-10-02 02:06:46 +02:00

15 lines
315 B
GLSL

//modified version of [this shader](https://github.com/wessles/GLSL-CRT/blob/master/shader.frag)
#version 300 es
precision mediump float;
in vec2 v_texcoord;
uniform sampler2D tex;
out vec4 FragColor;
// [0,1]
void main() {
vec4 cta = texture(tex, v_texcoord);
FragColor = vec4(cta.z, cta.y, cta.x, cta.a);
}