• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 140
2
3precision mediump float;
4
5in vec4 bigColor;
6in vec4 BaseColor;
7in float d;
8
9void bar();
10float foo(vec4);
11float unreachableReturn();
12
13void main()
14{
15    vec4 color = vec4(foo(BaseColor));
16
17    bar();
18    float f = unreachableReturn();
19
20    gl_FragColor = color * f;
21}
22
23void bar()
24{
25}
26
27float unreachableReturn()
28{
29    bar();
30    if (d < 4.2)
31        return 1.2;
32    else
33        return 4.5;
34}
35
36float foo(vec4 bar)
37{
38    return bar.x + bar.y;
39}
40