
uniform sampler2D Tex[6];

uniform float4 c[6];

void main(in float4 _vcol : COLOR, in float2 _vt0 : TEXCOORD0, in float2 _vt1 : TEXCOORD1, in float2 _vt2 : TEXCOORD2, in float2 _vt3 : TEXCOORD3, in float2 _vt4 : TEXCOORD4, in float2 _vt5 : TEXCOORD5, out float4 _ocol : COLOR)
{
	float4 T0 = tex2D(Tex[0], _vt0);
	float4 T1 = tex2D(Tex[1], _vt1);
	float4 T2 = tex2D(Tex[2], _vt2);
	float4 T3 = tex2D(Tex[3], _vt3);
	float4 T4 = tex2D(Tex[4], _vt4);
	float4 T5 = tex2D(Tex[5], _vt5);
	_ocol = (((((_vcol * (1.0 - c[0]) * T0 + c[0] * T0) * (1.0 - c[1]) * T1 + c[1] * T1) * (1.0 - c[2]) * T2 + c[2] * T2) * (1.0 - c[3]) * T3 + c[3] * T3) * (1.0 - c[4]) * T4 + c[4] * T4) * (1.0f - c[5]) * T5 + c[5] * T5;
}
