Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/frag/front-facing.frag

raw
1 #version 310 es
2 precision mediump float;
3
4 layout(location = 0) out vec4 FragColor;
5 layout(location = 0) in vec4 vA;
6 layout(location = 1) in vec4 vB;
7
8 void main()
9 {
10 if (gl_FrontFacing)
11 FragColor = vA;
12 else
13 FragColor = vB;
14 }