mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
39 lines
722 B
Text
39 lines
722 B
Text
precision lowp int;
|
|
precision highp float;
|
|
struct MyStruct {
|
|
float f;
|
|
int i;
|
|
};
|
|
uniform MyStruct s1;
|
|
uniform float fh1;
|
|
uniform highp float fh2;
|
|
uniform mediump float fm;
|
|
uniform int il1;
|
|
uniform int il2;
|
|
uniform int im;
|
|
void main ()
|
|
{
|
|
int i_1;
|
|
lowp float f_2;
|
|
highp float tmpvar_3;
|
|
tmpvar_3 = (((fh1 + fh2) + fm) + s1.f);
|
|
f_2 = tmpvar_3;
|
|
int tmpvar_4;
|
|
tmpvar_4 = (((il1 + il2) + im) + s1.i);
|
|
i_1 = tmpvar_4;
|
|
float tmpvar_5;
|
|
if ((gl_FragCoord.x > 0.5)) {
|
|
tmpvar_5 = 0.9;
|
|
} else {
|
|
tmpvar_5 = 0.1;
|
|
};
|
|
highp vec4 tmpvar_6;
|
|
tmpvar_6.w = 0.0;
|
|
tmpvar_6.x = f_2;
|
|
tmpvar_6.y = float(i_1);
|
|
tmpvar_6.z = tmpvar_5;
|
|
gl_FragColor = tmpvar_6;
|
|
}
|
|
|
|
|
|
// inputs: 1, stats: 11 alu 0 tex 1 flow
|