VERTEX
//#version 130 compability

varying vec4 col;
void main()
{

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


}



PIXEL
uniform sampler2D tex;

varying vec4 col;
void main()
{
	vec4 c = texture2D(tex,gl_TexCoord[0].st);
	c.r *= col.a  ;
	gl_FragColor.rgb = vec3(1.0,1.0,1.0)*(1.0- c.r) +c.r*col.rgb;
	gl_FragColor.a =1.0;
	
}
