Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders/frag/swizzle.frag

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 layout(binding = 0) uniform mediump sampler2D samp;
6
7 layout(location = 0) out vec4 FragColor;
8 layout(location = 2) in vec2 vUV;
9 layout(location = 1) in vec3 vNormal;
10
11 void main()
12 {
13 vec4 _19 = texture(samp, vUV);
14 float _23 = _19.x;
15 FragColor = vec4(_23, _19.yz, 1.0);
16 FragColor = vec4(_23, _19.z, 1.0, 4.0);
17 FragColor = vec4(_23, _23, texture(samp, vUV + vec2(0.100000001490116119384765625)).yy);
18 FragColor = vec4(vNormal, 1.0);
19 FragColor = vec4(vNormal + vec3(1.7999999523162841796875), 1.0);
20 FragColor = vec4(vUV, vUV + vec2(1.7999999523162841796875));
21 }
22