bgfx/3rdparty/glsl-optimizer/tests/fragment/unity-Test_VertexShaderTexture-ir.txt

39 lines
638 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct v2f {
vec4 pos;
vec2 uv;
};
uniform sampler2D _MainTex;
vec4 frag (
in v2f i
)
{
vec4 tmpvar_1;
tmpvar_1 = texture2D (_MainTex, i.uv);
return tmpvar_1;
}
void main ()
{
v2f xlt_i;
vec4 xl_retval;
vec4 tmpvar_1;
tmpvar_1 = vec4(0.0, 0.0, 0.0, 0.0);
xlt_i.pos = tmpvar_1;
vec2 tmpvar_2;
tmpvar_2 = gl_TexCoord[0].xy;
vec2 tmpvar_3;
tmpvar_3 = tmpvar_2;
xlt_i.uv = tmpvar_3;
vec4 tmpvar_4;
tmpvar_4 = frag (xlt_i);
vec4 tmpvar_5;
tmpvar_5 = tmpvar_4;
xl_retval = tmpvar_5;
vec4 tmpvar_6;
tmpvar_6 = xl_retval.xyzw;
vec4 tmpvar_7;
tmpvar_7 = tmpvar_6;
gl_FragData[0] = tmpvar_7;
}