Debian Codegraph @

third_party/spirv-cross/shaders-no-opt/frag/multi-dimensional.desktop.invalid.flatten_dim.frag

raw
1 #version 450
2
3 layout(location = 0) out vec4 FragColor;
4 layout(binding = 0) uniform sampler2D uTextures[2][3][1];
5 layout(location = 0) flat in int vIndex;
6 layout(location = 1) in vec2 vUV;
7
8 void main()
9 {
10 vec4 values3[2][3][1];
11
12 for (int z = 0; z < 2; z++)
13 for (int y = 0; y < 3; y++)
14 for (int x = 0; x < 1; x++)
15 values3[z][y][x] = texture(uTextures[z][y][x], vUV);
16
17 FragColor = values3[1][2][0] + values3[0][2][0] + values3[vIndex + 1][2][vIndex];
18 }