mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
37 lines
724 B
Text
37 lines
724 B
Text
|
varying highp vec4 xlv_COLOR;
|
||
|
varying highp vec2 xlv_TEXCOORD0;
|
||
|
mediump vec4 xlat_main (
|
||
|
in highp vec2 uv,
|
||
|
in highp vec4 color
|
||
|
)
|
||
|
{
|
||
|
mediump vec4 c;
|
||
|
highp vec4 tmpvar_1;
|
||
|
tmpvar_1 = color;
|
||
|
c = tmpvar_1;
|
||
|
highp vec2 tmpvar_2;
|
||
|
tmpvar_2 = (c.xy + uv);
|
||
|
c.xy = tmpvar_2.xy.xy;
|
||
|
return c;
|
||
|
}
|
||
|
|
||
|
void main ()
|
||
|
{
|
||
|
mediump vec4 xl_retval;
|
||
|
highp vec2 tmpvar_1;
|
||
|
tmpvar_1 = xlv_TEXCOORD0.xy;
|
||
|
highp vec4 tmpvar_2;
|
||
|
tmpvar_2 = xlv_COLOR.xyzw;
|
||
|
mediump vec4 tmpvar_3;
|
||
|
tmpvar_3 = xlat_main (tmpvar_1, tmpvar_2);
|
||
|
mediump vec4 tmpvar_4;
|
||
|
tmpvar_4 = tmpvar_3;
|
||
|
xl_retval = tmpvar_4;
|
||
|
mediump vec4 tmpvar_5;
|
||
|
tmpvar_5 = xl_retval.xyzw;
|
||
|
mediump vec4 tmpvar_6;
|
||
|
tmpvar_6 = tmpvar_5;
|
||
|
gl_FragData[0] = tmpvar_6;
|
||
|
}
|
||
|
|