mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
27 lines
330 B
Text
27 lines
330 B
Text
|
#version 300 es
|
||
|
out lowp vec4 _fragData;
|
||
|
void main()
|
||
|
{
|
||
|
if (gl_FragCoord.x==1.0)
|
||
|
discard;
|
||
|
float a;
|
||
|
if (2==3)
|
||
|
a = 2.0;
|
||
|
if (3==4)
|
||
|
a = 3.0;
|
||
|
else
|
||
|
a = 4.0;
|
||
|
for (int i = 0; i < 10; ++i)
|
||
|
a += 1.0;
|
||
|
do {
|
||
|
a += 2.0;
|
||
|
} while (0==1);
|
||
|
a += 1.0;
|
||
|
a *= a;
|
||
|
a = -a;
|
||
|
--a;
|
||
|
a = sqrt(a);
|
||
|
a = 1.0 / a;
|
||
|
_fragData = vec4(a);
|
||
|
}
|