mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
77 lines
1.7 KiB
Text
77 lines
1.7 KiB
Text
struct v2f {
|
|
highp vec4 vertex;
|
|
lowp vec4 color;
|
|
mediump vec2 texcoord;
|
|
};
|
|
struct appdata_t {
|
|
highp vec4 vertex;
|
|
lowp vec4 color;
|
|
highp vec2 texcoord;
|
|
};
|
|
varying mediump vec2 xlv_TEXCOORD0;
|
|
varying lowp vec4 xlv_COLOR;
|
|
uniform highp mat4 glstate_matrix_mvp;
|
|
uniform highp vec4 _MainTex_ST;
|
|
attribute lowp vec4 _glesColor;
|
|
attribute highp vec4 _glesMultiTexCoord1;
|
|
attribute highp vec4 _glesMultiTexCoord0;
|
|
attribute mediump vec3 _glesNormal;
|
|
attribute highp vec4 _glesVertex;
|
|
v2f xlat_main (
|
|
in appdata_t v
|
|
)
|
|
{
|
|
v2f o;
|
|
highp vec4 tmpvar_1;
|
|
tmpvar_1 = (glstate_matrix_mvp * v.vertex);
|
|
o.vertex = tmpvar_1;
|
|
lowp vec4 tmpvar_2;
|
|
tmpvar_2 = v.color;
|
|
o.color = tmpvar_2;
|
|
highp vec2 tmpvar_3;
|
|
tmpvar_3 = ((v.texcoord.xy * _MainTex_ST.xy) + _MainTex_ST.zw);
|
|
o.texcoord = tmpvar_3;
|
|
return o;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
appdata_t xlt_v;
|
|
v2f xl_retval;
|
|
highp vec4 tmpvar_1;
|
|
tmpvar_1 = _glesVertex.xyzw;
|
|
highp vec4 tmpvar_2;
|
|
tmpvar_2 = tmpvar_1;
|
|
xlt_v.vertex = tmpvar_2;
|
|
lowp vec4 tmpvar_3;
|
|
tmpvar_3 = _glesColor.xyzw;
|
|
lowp vec4 tmpvar_4;
|
|
tmpvar_4 = tmpvar_3;
|
|
xlt_v.color = tmpvar_4;
|
|
highp vec2 tmpvar_5;
|
|
tmpvar_5 = _glesMultiTexCoord0.xy;
|
|
highp vec2 tmpvar_6;
|
|
tmpvar_6 = tmpvar_5;
|
|
xlt_v.texcoord = tmpvar_6;
|
|
v2f tmpvar_7;
|
|
tmpvar_7 = xlat_main (xlt_v);
|
|
v2f tmpvar_8;
|
|
tmpvar_8 = tmpvar_7;
|
|
xl_retval = tmpvar_8;
|
|
highp vec4 tmpvar_9;
|
|
tmpvar_9 = xl_retval.vertex.xyzw;
|
|
highp vec4 tmpvar_10;
|
|
tmpvar_10 = tmpvar_9;
|
|
gl_Position = tmpvar_10;
|
|
lowp vec4 tmpvar_11;
|
|
tmpvar_11 = xl_retval.color.xyzw;
|
|
lowp vec4 tmpvar_12;
|
|
tmpvar_12 = tmpvar_11;
|
|
xlv_COLOR = tmpvar_12;
|
|
mediump vec2 tmpvar_13;
|
|
tmpvar_13 = xl_retval.texcoord.xy;
|
|
mediump vec2 tmpvar_14;
|
|
tmpvar_14 = tmpvar_13;
|
|
xlv_TEXCOORD0 = tmpvar_14;
|
|
}
|
|
|