1#version 310 es 2 3lowp float foo(); 4 5in lowp float low, high; 6 7lowp float face1 = 11.0; 8 9out lowp vec4 Color; 10 11void main() 12{ 13 int z = 3; 14 15 if (2.0 * low + 1.0 < high) 16 ++z; 17 18 Color = face1 * vec4(z) + foo(); 19} 20 21lowp float face2 = -2.0; 22 23lowp float foo() 24{ 25 // testing if face2 initializer insert logic is correct in main 26 return face2; 27} 28