1#version 450 2 3precision highp float; 4 5layout(location = 0) out mediump vec4 FragColor; 6layout(location = 0) in vec4 in0; 7 8void main() 9{ 10 switch(int(in0.w)) { 11 case 0: FragColor = vec4(in0.x + 0); break; 12 case 1: FragColor = vec4(in0.y + 1); break; 13 case 2: FragColor = vec4(in0.z + 2); break; 14 default: FragColor = vec4(-1); 15 } 16} 17