You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
386 B

#version 310 es
lowp float foo();
in lowp float low, high;
lowp float face1 = 11.0;
out lowp vec4 Color;
void main()
{
int z = 3;
if (2.0 * low + 1.0 < high)
++z;
Color = face1 * vec4(z) + foo();
}
lowp float face2 = -2.0;
lowp float foo()
{
// testing if face2 initializer insert logic is correct in main
return face2;
}