mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
20 lines
172 B
Text
20 lines
172 B
Text
|
float foo (float v)
|
||
|
{
|
||
|
float a, b;
|
||
|
a = v;
|
||
|
{
|
||
|
float a;
|
||
|
a = sin(v);
|
||
|
b = a;
|
||
|
}
|
||
|
a += b;
|
||
|
return a;
|
||
|
}
|
||
|
|
||
|
varying float vv;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_FragColor = vec4(foo(vv));
|
||
|
}
|