2012-10-07 23:41:18 -04:00
|
|
|
struct v2f {
|
|
|
|
vec4 vertex;
|
|
|
|
vec2 texcoord;
|
|
|
|
};
|
|
|
|
uniform vec4 _Color;
|
2014-02-11 02:06:13 -05:00
|
|
|
uniform sampler2D _MainTex;
|
2012-10-07 23:41:18 -04:00
|
|
|
vec4 frag (
|
|
|
|
in v2f i_1
|
|
|
|
)
|
|
|
|
{
|
|
|
|
vec4 tmpvar_2;
|
|
|
|
tmpvar_2 = texture2D (_MainTex, i_1.texcoord);
|
|
|
|
return (tmpvar_2 * _Color);
|
|
|
|
}
|
|
|
|
|
|
|
|
void main ()
|
|
|
|
{
|
|
|
|
v2f xlt_i_3;
|
|
|
|
vec4 xl_retval_4;
|
|
|
|
vec4 tmpvar_5;
|
|
|
|
tmpvar_5 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
|
|
xlt_i_3.vertex = tmpvar_5;
|
|
|
|
vec2 tmpvar_6;
|
|
|
|
tmpvar_6 = gl_TexCoord[0].xy;
|
|
|
|
vec2 tmpvar_7;
|
|
|
|
tmpvar_7 = tmpvar_6;
|
|
|
|
xlt_i_3.texcoord = tmpvar_7;
|
|
|
|
vec4 tmpvar_8;
|
|
|
|
tmpvar_8 = frag (xlt_i_3);
|
|
|
|
vec4 tmpvar_9;
|
|
|
|
tmpvar_9 = tmpvar_8;
|
|
|
|
xl_retval_4 = tmpvar_9;
|
|
|
|
vec4 tmpvar_10;
|
|
|
|
tmpvar_10 = xl_retval_4.xyzw;
|
|
|
|
vec4 tmpvar_11;
|
|
|
|
tmpvar_11 = tmpvar_10;
|
|
|
|
gl_FragData[0] = tmpvar_11;
|
|
|
|
}
|
|
|
|
|