mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
26 lines
434 B
Text
26 lines
434 B
Text
varying lowp float xx;
|
|
void main ()
|
|
{
|
|
lowp float c_1;
|
|
highp int tmpvar_3;
|
|
if ((xx > 0.5)) {
|
|
tmpvar_3 = 2;
|
|
} else {
|
|
tmpvar_3 = 4;
|
|
};
|
|
if ((tmpvar_3 < 2)) {
|
|
discard;
|
|
};
|
|
c_1 = 0.0;
|
|
for (highp int i_2 = tmpvar_3; i_2 < 4; i_2++) {
|
|
c_1 = (c_1 + xx);
|
|
};
|
|
lowp vec4 tmpvar_4;
|
|
tmpvar_4 = vec4(c_1);
|
|
gl_FragColor = tmpvar_4;
|
|
}
|
|
|
|
|
|
// stats: 8 alu 1 tex 4 flow
|
|
// inputs: 1
|
|
// #0: xx (low float) 1x1 [-1]
|