Debian Codegraph @

third_party/spirv-cross/reference/shaders/frag/mix.frag

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 layout(location = 0) out vec4 FragColor;
6 layout(location = 0) in vec4 vIn0;
7 layout(location = 1) in vec4 vIn1;
8 layout(location = 2) in float vIn2;
9 layout(location = 3) in float vIn3;
10
11 void main()
12 {
13 bvec4 l = bvec4(false, true, false, false);
14 FragColor = mix(vIn0, vIn1, l);
15 bool f = true;
16 FragColor = vec4(f ? vIn3 : vIn2);
17 FragColor = mix(vIn1, vIn0, bvec4(f));
18 FragColor = vec4(f ? vIn2 : vIn3);
19 }
20