2016-01-23 00:47:22 +00:00
|
|
|
#version 310 es
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
lowp float foo();
|
|
|
|
|
2016-02-16 03:58:50 +00:00
|
|
|
in lowp float low, high;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
lowp float face1 = 11.0;
|
|
|
|
|
2016-01-23 00:47:22 +00:00
|
|
|
out lowp vec4 Color;
|
|
|
|
|
2015-05-15 21:32:46 +00:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
int z = 3;
|
|
|
|
|
2016-02-16 03:58:50 +00:00
|
|
|
if (2.0 * low + 1.0 < high)
|
2015-05-15 21:32:46 +00:00
|
|
|
++z;
|
|
|
|
|
2016-01-23 00:47:22 +00:00
|
|
|
Color = face1 * vec4(z) + foo();
|
2015-05-15 21:32:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
lowp float face2 = -2.0;
|
|
|
|
|
|
|
|
lowp float foo()
|
|
|
|
{
|
|
|
|
// testing if face2 initializer insert logic is correct in main
|
|
|
|
return face2;
|
|
|
|
}
|