blob: c795369c35697806e89c926cd22978ba78573641 [file] [log] [blame]
John Kessenich7d58d652013-03-21 17:33:38 +00001uniform vec4 bigColor;
2varying vec4 BaseColor;
3uniform float d;
4
5void bar();
6float foo(vec4);
7float unreachableReturn();
8
9void main()
10{
11 vec4 color = vec4(foo(BaseColor));
12
13 bar();
14 float f = unreachableReturn();
15
16 gl_FragColor = color * f;
17}
18
19void bar()
20{
21}
22
23float unreachableReturn()
24{
25 bar();
26 if (d < 4.2)
27 return 1.2;
28 else
29 return 4.5;
30}
31
32float foo(vec4 bar)
33{
34 return bar.x + bar.y;
35}