| 1 |
#version 440 |
| 2 |
|
| 3 |
layout(location = 0) in vec2 qt_TexCoord0; |
| 4 |
layout(location = 0) out vec4 fragColor; |
| 5 |
|
| 6 |
layout(binding = 1) uniform sampler2D cyan; |
| 7 |
layout(binding = 2) uniform sampler2D magenta; |
| 8 |
layout(binding = 3) uniform sampler2D yellow; |
| 9 |
layout(binding = 4) uniform sampler2D black; |
| 10 |
|
| 11 |
void main() { |
| 12 |
vec2 t = qt_TexCoord0 * 3. - 1.; |
| 13 |
lowp float c = texture(cyan, t + vec2(.05, .09)).a; |
| 14 |
lowp float m = texture(magenta, t + vec2(.04, -.10)).a; |
| 15 |
lowp float y = texture(yellow, t + vec2(-.10, .01)).a; |
| 16 |
lowp float k = texture(black, t).a; |
| 17 |
fragColor = 1. - vec4(c + k, m + k, y + k, 0.); |
| 18 |
} |