third_party/spirv-cross/shaders-msl/frag/texture-cube-array.ios.emulate-cube-array.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(set = 0, binding = 0) uniform samplerCube cubeSampler; |
| 4 | layout(set = 0, binding = 1) uniform samplerCubeArray cubeArraySampler; |
| 5 | layout(set = 0, binding = 2) uniform sampler2DArray texArraySampler; |
| 6 | |
| 7 | layout(location = 0) in vec4 vUV; |
| 8 | layout(location = 0) out vec4 FragColor; |
| 9 | |
| 10 | void main() |
| 11 | { |
| 12 | vec4 a = texture(cubeSampler, vUV.xyz); |
| 13 | vec4 b = texture(cubeArraySampler, vUV); |
| 14 | vec4 c = texture(texArraySampler, vUV.xyz); |
| 15 | FragColor = a + b + c; |
| 16 | } |