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.
38 lines
448 B
38 lines
448 B
#version 110
|
|
|
|
uniform vec4 bigColor;
|
|
varying vec4 BaseColor;
|
|
uniform float d;
|
|
|
|
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;
|
|
}
|