diff options
Diffstat (limited to '.config/hypr/shaders/02_green_tint.glsl')
| -rwxr-xr-x | .config/hypr/shaders/02_green_tint.glsl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.config/hypr/shaders/02_green_tint.glsl b/.config/hypr/shaders/02_green_tint.glsl new file mode 100755 index 0000000..c978154 --- /dev/null +++ b/.config/hypr/shaders/02_green_tint.glsl @@ -0,0 +1,16 @@ +#version 300 es +// Pure Green Channel Shader - FIXED +precision highp float; + +in vec2 v_texcoord; +uniform sampler2D tex; +out vec4 fragColor; + +const vec3 LUMA = vec3(0.2126, 0.7152, 0.0722); + +void main() { + vec4 pixColor = texture(tex, v_texcoord); + float gray = dot(pixColor.rgb, LUMA); + // FIXED: Now correctly outputs to GREEN channel + fragColor = vec4(0.0, gray, 0.0, pixColor.a); +} |
