bgfx/3rdparty/glsl-optimizer/tests/vertex/z-particle-irES.txt

78 lines
1.8 KiB
Text
Raw Normal View History

2012-10-07 23:41:18 -04:00
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_1
)
{
v2f o_2;
highp vec4 tmpvar_3;
tmpvar_3 = (glstate_matrix_mvp * v_1.vertex);
o_2.vertex = tmpvar_3;
lowp vec4 tmpvar_4;
tmpvar_4 = v_1.color;
o_2.color = tmpvar_4;
highp vec2 tmpvar_5;
tmpvar_5 = ((v_1.texcoord.xy * _MainTex_ST.xy) + _MainTex_ST.zw);
o_2.texcoord = tmpvar_5;
return o_2;
}
void main ()
{
appdata_t xlt_v_6;
v2f xl_retval_7;
highp vec4 tmpvar_8;
tmpvar_8 = _glesVertex.xyzw;
highp vec4 tmpvar_9;
tmpvar_9 = tmpvar_8;
xlt_v_6.vertex = tmpvar_9;
lowp vec4 tmpvar_10;
tmpvar_10 = _glesColor.xyzw;
lowp vec4 tmpvar_11;
tmpvar_11 = tmpvar_10;
xlt_v_6.color = tmpvar_11;
highp vec2 tmpvar_12;
tmpvar_12 = _glesMultiTexCoord0.xy;
highp vec2 tmpvar_13;
tmpvar_13 = tmpvar_12;
xlt_v_6.texcoord = tmpvar_13;
v2f tmpvar_14;
tmpvar_14 = xlat_main (xlt_v_6);
v2f tmpvar_15;
tmpvar_15 = tmpvar_14;
xl_retval_7 = tmpvar_15;
highp vec4 tmpvar_16;
tmpvar_16 = xl_retval_7.vertex.xyzw;
highp vec4 tmpvar_17;
tmpvar_17 = tmpvar_16;
gl_Position = tmpvar_17;
lowp vec4 tmpvar_18;
tmpvar_18 = xl_retval_7.color.xyzw;
lowp vec4 tmpvar_19;
tmpvar_19 = tmpvar_18;
xlv_COLOR = tmpvar_19;
mediump vec2 tmpvar_20;
tmpvar_20 = xl_retval_7.texcoord.xy;
mediump vec2 tmpvar_21;
tmpvar_21 = tmpvar_20;
xlv_TEXCOORD0 = tmpvar_21;
}