Debian Codegraph @

third_party/spirv-cross/shaders-msl-no-opt/frag/image-gather.frag

raw
1 #version 450
2
3 layout(location = 0) out vec4 FragColor;
4
5 layout(set = 0, binding = 0) uniform sampler2D uSamp;
6 layout(set = 0, binding = 1) uniform sampler2DShadow uSampShadow;
7 layout(location = 0) in vec3 vUV;
8
9 void main()
10 {
11 FragColor = textureGather(uSamp, vUV.xy, 0);
12 FragColor += textureGather(uSamp, vUV.xy, 1);
13 FragColor += textureGather(uSampShadow, vUV.xy, vUV.z);
14 }