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