bgfx/3rdparty/glsl-optimizer/tests/vertex/z-particle-ir.txt
2012-10-07 20:41:18 -07:00

72 lines
1.5 KiB
Text

struct v2f {
vec4 vertex;
vec4 color;
vec2 texcoord;
};
struct appdata_t {
vec4 vertex;
vec4 color;
vec2 texcoord;
};
varying vec2 xlv_TEXCOORD0;
varying vec4 xlv_COLOR;
uniform mat4 glstate_matrix_mvp;
uniform vec4 _MainTex_ST;
v2f xlat_main (
in appdata_t v_1
)
{
v2f o_2;
vec4 tmpvar_3;
tmpvar_3 = (glstate_matrix_mvp * v_1.vertex);
o_2.vertex = tmpvar_3;
vec4 tmpvar_4;
tmpvar_4 = v_1.color;
o_2.color = tmpvar_4;
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;
vec4 tmpvar_8;
tmpvar_8 = gl_Vertex.xyzw;
vec4 tmpvar_9;
tmpvar_9 = tmpvar_8;
xlt_v_6.vertex = tmpvar_9;
vec4 tmpvar_10;
tmpvar_10 = gl_Color.xyzw;
vec4 tmpvar_11;
tmpvar_11 = tmpvar_10;
xlt_v_6.color = tmpvar_11;
vec2 tmpvar_12;
tmpvar_12 = gl_MultiTexCoord0.xy;
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;
vec4 tmpvar_16;
tmpvar_16 = xl_retval_7.vertex.xyzw;
vec4 tmpvar_17;
tmpvar_17 = tmpvar_16;
gl_Position = tmpvar_17;
vec4 tmpvar_18;
tmpvar_18 = xl_retval_7.color.xyzw;
vec4 tmpvar_19;
tmpvar_19 = tmpvar_18;
xlv_COLOR = tmpvar_19;
vec2 tmpvar_20;
tmpvar_20 = xl_retval_7.texcoord.xy;
vec2 tmpvar_21;
tmpvar_21 = tmpvar_20;
xlv_TEXCOORD0 = tmpvar_21;
}