1#version 110 2 3uniform 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} 38