mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
50 lines
1 KiB
Text
50 lines
1 KiB
Text
struct v2f {
|
|
highp vec4 pos;
|
|
highp vec2 uv;
|
|
highp vec4 color;
|
|
};
|
|
varying highp vec2 xlv_TEXCOORD0;
|
|
varying highp vec4 xlv_COLOR;
|
|
mediump vec4 xlat_main (
|
|
in v2f i_1
|
|
)
|
|
{
|
|
mediump vec4 c_2;
|
|
highp vec4 tmpvar_3;
|
|
tmpvar_3 = i_1.color;
|
|
c_2 = tmpvar_3;
|
|
highp vec2 tmpvar_4;
|
|
tmpvar_4 = (c_2.xy + i_1.uv);
|
|
c_2.xy = tmpvar_4.xy.xy;
|
|
return c_2;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
v2f xlt_i_5;
|
|
mediump vec4 xl_retval_6;
|
|
vec4 tmpvar_7;
|
|
tmpvar_7 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
xlt_i_5.pos = tmpvar_7;
|
|
highp vec2 tmpvar_8;
|
|
tmpvar_8 = xlv_TEXCOORD0.xy;
|
|
highp vec2 tmpvar_9;
|
|
tmpvar_9 = tmpvar_8;
|
|
xlt_i_5.uv = tmpvar_9;
|
|
highp vec4 tmpvar_10;
|
|
tmpvar_10 = xlv_COLOR.xyzw;
|
|
highp vec4 tmpvar_11;
|
|
tmpvar_11 = tmpvar_10;
|
|
xlt_i_5.color = tmpvar_11;
|
|
mediump vec4 tmpvar_12;
|
|
tmpvar_12 = xlat_main (xlt_i_5);
|
|
mediump vec4 tmpvar_13;
|
|
tmpvar_13 = tmpvar_12;
|
|
xl_retval_6 = tmpvar_13;
|
|
mediump vec4 tmpvar_14;
|
|
tmpvar_14 = xl_retval_6.xyzw;
|
|
mediump vec4 tmpvar_15;
|
|
tmpvar_15 = tmpvar_14;
|
|
gl_FragData[0] = tmpvar_15;
|
|
}
|
|
|