diff options
Diffstat (limited to '.config/hypr/shaders/invert.frag')
-rw-r--r-- | .config/hypr/shaders/invert.frag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/hypr/shaders/invert.frag b/.config/hypr/shaders/invert.frag new file mode 100644 index 0000000..864f718 --- /dev/null +++ b/.config/hypr/shaders/invert.frag | |||
@@ -0,0 +1,13 @@ | |||
1 | // vim: set ft=glsl: | ||
2 | // blue light filter shader | ||
3 | // values from https://reshade.me/forum/shader-discussion/3673-blue-light-filter-similar-to-f-lux | ||
4 | |||
5 | precision mediump float; | ||
6 | varying vec2 v_texcoord; | ||
7 | uniform sampler2D tex; | ||
8 | |||
9 | void main() { | ||
10 | vec4 pixColor = texture2D(tex, v_texcoord); | ||
11 | pixColor.rgb = 1.0 - pixColor.rgb; | ||
12 | gl_FragColor = pixColor; | ||
13 | } \ No newline at end of file | ||