VERTEX


varying vec4 col;
void main()
{

	gl_Position=ftransform(); 
	
	gl_TexCoord[0] = gl_MultiTexCoord0;
	col = gl_Color;


}
PIXEL
uniform sampler2D tex;
uniform vec4 basecolor;

uniform vec4 alphaCol;
varying vec4 col;
void main()
{
	vec4 c =  col * texture2D(tex,gl_TexCoord[0].xy) ;
	gl_FragColor = c * basecolor * (1 - c.a) + c*alphaCol *c.a;
}
