aurora.confighyprshaders01_red_tint.glsl
| 1 | #version 300 es |
| 2 | // Pure Red Channel Shader - OPTIMIZED |
| 3 | precision highp float; |
| 4 | |
| 5 | in vec2 v_texcoord; |
| 6 | uniform sampler2D tex; |
| 7 | out vec4 fragColor; |
| 8 | |
| 9 | // Using Rec. 709 for consistency |
| 10 | const vec3 LUMA = vec3(0.2126, 0.7152, 0.0722); |
| 11 | |
| 12 | void main() { |
| 13 | vec4 pixColor = texture(tex, v_texcoord); |
| 14 | float gray = dot(pixColor.rgb, LUMA); |
| 15 | fragColor = vec4(gray, 0.0, 0.0, pixColor.a); |
| 16 | } |