mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
64 lines
1.4 KiB
Text
64 lines
1.4 KiB
Text
mediump vec4 xlat_main ()
|
|
{
|
|
int i_1;
|
|
mediump vec4 c_2;
|
|
highp vec2 poisson_3[8];
|
|
vec2 tmpvar_4;
|
|
tmpvar_4 = vec2(0.0, 0.0);
|
|
poisson_3[0] = tmpvar_4;
|
|
vec2 tmpvar_5;
|
|
tmpvar_5 = vec2(0.527837, -0.085868);
|
|
poisson_3[1] = tmpvar_5;
|
|
vec2 tmpvar_6;
|
|
tmpvar_6 = vec2(-0.040088, 0.536087);
|
|
poisson_3[2] = tmpvar_6;
|
|
vec2 tmpvar_7;
|
|
tmpvar_7 = vec2(-0.670445, -0.179949);
|
|
poisson_3[3] = tmpvar_7;
|
|
vec2 tmpvar_8;
|
|
tmpvar_8 = vec2(-0.419418, -0.616039);
|
|
poisson_3[4] = tmpvar_8;
|
|
vec2 tmpvar_9;
|
|
tmpvar_9 = vec2(0.440453, -0.639399);
|
|
poisson_3[5] = tmpvar_9;
|
|
vec2 tmpvar_10;
|
|
tmpvar_10 = vec2(-0.757088, 0.349334);
|
|
poisson_3[6] = tmpvar_10;
|
|
vec2 tmpvar_11;
|
|
tmpvar_11 = vec2(0.574619, 0.685879);
|
|
poisson_3[7] = tmpvar_11;
|
|
int tmpvar_12;
|
|
tmpvar_12 = 0;
|
|
i_1 = tmpvar_12;
|
|
vec4 tmpvar_13;
|
|
tmpvar_13 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
c_2 = tmpvar_13;
|
|
while (true) {
|
|
if (!((i_1 < 8))) {
|
|
break;
|
|
};
|
|
highp vec2 tmpvar_14;
|
|
tmpvar_14 = (c_2.xy + poisson_3[i_1]);
|
|
c_2.xy = tmpvar_14.xy.xy;
|
|
int tmpvar_15;
|
|
tmpvar_15 = (i_1 + 1);
|
|
i_1 = tmpvar_15;
|
|
};
|
|
return c_2;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
mediump vec4 xl_retval_16;
|
|
mediump vec4 tmpvar_17;
|
|
tmpvar_17 = xlat_main ();
|
|
mediump vec4 tmpvar_18;
|
|
tmpvar_18 = tmpvar_17;
|
|
xl_retval_16 = tmpvar_18;
|
|
mediump vec4 tmpvar_19;
|
|
tmpvar_19 = xl_retval_16.xyzw;
|
|
mediump vec4 tmpvar_20;
|
|
tmpvar_20 = tmpvar_19;
|
|
gl_FragData[0] = tmpvar_20;
|
|
}
|
|
|