Hyprland/example/screenShader.frag

20 lines
286 B
GLSL
Raw Permalink Normal View History

2022-12-01 13:36:07 +00:00
//
// Example blue light filter shader.
//
#version 300 es
2022-12-01 13:36:07 +00:00
precision mediump float;
in vec2 v_texcoord;
layout(location = 0) out vec4 fragColor;
2022-12-01 13:36:07 +00:00
uniform sampler2D tex;
void main() {
vec4 pixColor = texture(tex, v_texcoord);
2022-12-01 13:36:07 +00:00
pixColor[2] *= 0.8;
fragColor = pixColor;
2022-12-01 13:36:07 +00:00
}