diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-cross/shaders-msl/frag/texture-cube-array.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/spirv-cross/shaders-msl/frag/texture-cube-array.frag | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/shaders-msl/frag/texture-cube-array.frag b/3rdparty/bgfx/3rdparty/spirv-cross/shaders-msl/frag/texture-cube-array.frag new file mode 100644 index 00000000000..91a55f933bc --- /dev/null +++ b/3rdparty/bgfx/3rdparty/spirv-cross/shaders-msl/frag/texture-cube-array.frag @@ -0,0 +1,16 @@ +#version 450 + +layout(set = 0, binding = 0) uniform samplerCube cubeSampler; +layout(set = 0, binding = 1) uniform samplerCubeArray cubeArraySampler; +layout(set = 0, binding = 2) uniform sampler2DArray texArraySampler; + +layout(location = 0) in vec4 vUV; +layout(location = 0) out vec4 FragColor; + +void main() +{ + vec4 a = texture(cubeSampler, vUV.xyz); + vec4 b = texture(cubeArraySampler, vUV); + vec4 c = texture(texArraySampler, vUV.xyz); + FragColor = a + b + c; +} |