Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders/vulkan/frag/combined-texture-sampler-shadow.vk.frag.vk

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 layout(set = 0, binding = 2) uniform mediump texture2D uDepth;
6 layout(set = 0, binding = 0) uniform mediump samplerShadow uSampler;
7 layout(set = 0, binding = 1) uniform mediump sampler uSampler1;
8
9 layout(location = 0) out float FragColor;
10
11 void main()
12 {
13 FragColor = texture(sampler2DShadow(uDepth, uSampler), vec3(vec3(1.0).xy, 1.0)) + texture(sampler2D(uDepth, uSampler1), vec2(1.0)).x;
14 }
15