// Mikkel Gjøl, s971661 'at' student 'dot' dtu 'dot' dk
/////////////////////////////////////////

struct v2f {
	float4 position  : POSITION;
	float2 texcoords : TEXCOORD0;

	float3 amb_col   : TEXCOORD5;
	float3 diff_col  : TEXCOORD6;
	float3 spec_col  : TEXCOORD7;
};

void main( in v2f IN,
					 in uniform sampler2D difftex : TEXUNIT0,
					 in uniform sampler2D spectex : TEXUNIT1,
					 in uniform sampler2D ambtex  : TEXUNIT2,
					 out float4 colOut : COLOR0) {

	colOut = float4( IN.amb_col * tex2D( ambtex, IN.texcoords).rgb + IN.diff_col * tex2D( difftex, IN.texcoords ).rgb + IN.spec_col * tex2D( spectex, IN.texcoords ).rgb, 1);
}

