mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
24 lines
342 B
Text
24 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;
|
||
|
}
|
||
|
|