third_party/spirv-cross/reference/shaders-no-opt/frag/image-gather.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(binding = 0) uniform sampler2D uSamp; |
| 4 | layout(binding = 1) uniform sampler2DShadow uSampShadow; |
| 5 | |
| 6 | layout(location = 0) out vec4 FragColor; |
| 7 | layout(location = 0) in vec3 vUV; |
| 8 | |
| 9 | void main() |
| 10 | { |
| 11 | FragColor = textureGather(uSamp, vUV.xy); |
| 12 | FragColor += textureGather(uSamp, vUV.xy, 1); |
| 13 | FragColor += textureGather(uSampShadow, vUV.xy, vUV.z); |
| 14 | } |
| 15 |