2016-01-23 00:47:22 +00:00
|
|
|
#version 140
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
precision mediump float;
|
|
|
|
|
2016-02-16 03:58:50 +00:00
|
|
|
in vec4 bigColor;
|
2016-01-23 00:47:22 +00:00
|
|
|
in vec4 BaseColor;
|
2016-02-16 03:58:50 +00:00
|
|
|
in float d;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
void bar();
|
|
|
|
float foo(vec4);
|
|
|
|
float unreachableReturn();
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vec4 color = vec4(foo(BaseColor));
|
|
|
|
|
|
|
|
bar();
|
|
|
|
float f = unreachableReturn();
|
|
|
|
|
|
|
|
gl_FragColor = color * f;
|
|
|
|
}
|
|
|
|
|
|
|
|
void bar()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
float unreachableReturn()
|
|
|
|
{
|
|
|
|
bar();
|
|
|
|
if (d < 4.2)
|
|
|
|
return 1.2;
|
|
|
|
else
|
|
|
|
return 4.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
float foo(vec4 bar)
|
|
|
|
{
|
|
|
|
return bar.x + bar.y;
|
|
|
|
}
|