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