mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 11:05:36 -05:00
17 lines
273 B
Text
17 lines
273 B
Text
|
float foo (float a, float b, float c) {
|
||
|
return a+b+c;
|
||
|
}
|
||
|
float bar (float a, float b) {
|
||
|
float c = a*b;
|
||
|
return foo (a, b, c);
|
||
|
}
|
||
|
float har (float a) {
|
||
|
float b = sqrt(a);
|
||
|
float c = sqrt(b);
|
||
|
return bar (a, b) + c;
|
||
|
}
|
||
|
void main ()
|
||
|
{
|
||
|
gl_Position = vec4(har(gl_Vertex.x));
|
||
|
}
|