mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
23 lines
342 B
Text
23 lines
342 B
Text
struct v2f {
|
|
float f;
|
|
};
|
|
varying float var;
|
|
void main ()
|
|
{
|
|
v2f i2;
|
|
v2f i;
|
|
float tmpvar_1;
|
|
tmpvar_1 = var;
|
|
i.f = tmpvar_1;
|
|
v2f tmpvar_2;
|
|
tmpvar_2 = i;
|
|
i2 = tmpvar_2;
|
|
float tmpvar_3;
|
|
tmpvar_3 = abs (i2.f);
|
|
vec4 tmpvar_4;
|
|
tmpvar_4 = vec4(tmpvar_3);
|
|
vec4 tmpvar_5;
|
|
tmpvar_5 = tmpvar_4;
|
|
gl_FragColor = tmpvar_5;
|
|
}
|
|
|