bgfx/3rdparty/glsl-optimizer/tests/vertex/unity-ShowDestAlpha-ir.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

38 lines
612 B
Text

struct v2f {
vec4 vertex;
};
struct appdata_t {
vec4 vertex;
};
v2f vert (
in appdata_t v
)
{
v2f o;
vec4 tmpvar_1;
tmpvar_1 = (gl_ModelViewProjectionMatrix * v.vertex);
o.vertex = tmpvar_1;
return o;
}
void main ()
{
appdata_t xlt_v;
v2f xl_retval;
vec4 tmpvar_1;
tmpvar_1 = gl_Vertex.xyzw;
vec4 tmpvar_2;
tmpvar_2 = tmpvar_1;
xlt_v.vertex = tmpvar_2;
v2f tmpvar_3;
tmpvar_3 = vert (xlt_v);
v2f tmpvar_4;
tmpvar_4 = tmpvar_3;
xl_retval = tmpvar_4;
vec4 tmpvar_5;
tmpvar_5 = xl_retval.vertex.xyzw;
vec4 tmpvar_6;
tmpvar_6 = tmpvar_5;
gl_Position = tmpvar_6;
}