mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-02 20:36:50 -05:00
50 lines
989 B
Text
50 lines
989 B
Text
struct v2f {
|
|
highp vec4 pos;
|
|
highp vec2 uv;
|
|
highp vec4 color;
|
|
};
|
|
varying highp vec4 xlv_COLOR;
|
|
varying highp vec2 xlv_TEXCOORD0;
|
|
mediump vec4 xlat_main (
|
|
in v2f i
|
|
)
|
|
{
|
|
mediump vec4 c;
|
|
highp vec4 tmpvar_1;
|
|
tmpvar_1 = i.color;
|
|
c = tmpvar_1;
|
|
highp vec2 tmpvar_2;
|
|
tmpvar_2 = (c.xy + i.uv);
|
|
c.xy = tmpvar_2.xy.xy;
|
|
return c;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
v2f xlt_i;
|
|
mediump vec4 xl_retval;
|
|
vec4 tmpvar_1;
|
|
tmpvar_1 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
xlt_i.pos = tmpvar_1;
|
|
highp vec2 tmpvar_2;
|
|
tmpvar_2 = xlv_TEXCOORD0.xy;
|
|
highp vec2 tmpvar_3;
|
|
tmpvar_3 = tmpvar_2;
|
|
xlt_i.uv = tmpvar_3;
|
|
highp vec4 tmpvar_4;
|
|
tmpvar_4 = xlv_COLOR.xyzw;
|
|
highp vec4 tmpvar_5;
|
|
tmpvar_5 = tmpvar_4;
|
|
xlt_i.color = tmpvar_5;
|
|
mediump vec4 tmpvar_6;
|
|
tmpvar_6 = xlat_main (xlt_i);
|
|
mediump vec4 tmpvar_7;
|
|
tmpvar_7 = tmpvar_6;
|
|
xl_retval = tmpvar_7;
|
|
mediump vec4 tmpvar_8;
|
|
tmpvar_8 = xl_retval.xyzw;
|
|
mediump vec4 tmpvar_9;
|
|
tmpvar_9 = tmpvar_8;
|
|
gl_FragData[0] = tmpvar_9;
|
|
}
|
|
|