diff options
| author | krolxon <krolyxon@tutanota.com> | 2026-01-11 19:18:06 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2026-01-11 19:18:06 +0530 |
| commit | ea8f17368def0b581efcc332d057c0a034d4da9b (patch) | |
| tree | 5fd0bfd6627d34b93090d79628bdd87793e9f715 /.config/hypr/shaders/01_red_tint.glsl | |
| parent | 4c31a041975718cc2fb933012a303cf457475ce7 (diff) | |
add shader script and keybinds
Diffstat (limited to '.config/hypr/shaders/01_red_tint.glsl')
| -rwxr-xr-x | .config/hypr/shaders/01_red_tint.glsl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.config/hypr/shaders/01_red_tint.glsl b/.config/hypr/shaders/01_red_tint.glsl new file mode 100755 index 0000000..ea9f8c0 --- /dev/null +++ b/.config/hypr/shaders/01_red_tint.glsl @@ -0,0 +1,16 @@ +#version 300 es +// Pure Red Channel Shader - OPTIMIZED +precision highp float; + +in vec2 v_texcoord; +uniform sampler2D tex; +out vec4 fragColor; + +// Using Rec. 709 for consistency +const vec3 LUMA = vec3(0.2126, 0.7152, 0.0722); + +void main() { + vec4 pixColor = texture(tex, v_texcoord); + float gray = dot(pixColor.rgb, LUMA); + fragColor = vec4(gray, 0.0, 0.0, pixColor.a); +} |
