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

54 lines
985 B
Text

struct v2f {
vec4 vertex;
vec3 texcoord;
};
struct appdata_t {
vec4 vertex;
vec3 texcoord;
};
v2f vert (
in appdata_t v
)
{
v2f o;
vec4 tmpvar_1;
tmpvar_1 = (gl_ModelViewProjectionMatrix * v.vertex);
o.vertex = tmpvar_1;
vec3 tmpvar_2;
tmpvar_2 = v.texcoord;
o.texcoord = tmpvar_2;
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;
vec3 tmpvar_3;
tmpvar_3 = gl_MultiTexCoord0.xyz;
vec3 tmpvar_4;
tmpvar_4 = tmpvar_3;
xlt_v.texcoord = tmpvar_4;
v2f tmpvar_5;
tmpvar_5 = vert (xlt_v);
v2f tmpvar_6;
tmpvar_6 = tmpvar_5;
xl_retval = tmpvar_6;
vec4 tmpvar_7;
tmpvar_7 = xl_retval.vertex.xyzw;
vec4 tmpvar_8;
tmpvar_8 = tmpvar_7;
gl_Position = tmpvar_8;
vec4 tmpvar_9;
tmpvar_9.w = 0.0;
tmpvar_9.xyz = xl_retval.texcoord.xyz;
vec4 tmpvar_10;
tmpvar_10 = tmpvar_9;
gl_TexCoord[0] = tmpvar_10;
}