VERTEX

uniform float scroll;
void main()
{

	gl_Position=ftransform(); 
	
	gl_TexCoord[0] = gl_MultiTexCoord0 + vec4(scroll,0,0,0);
	gl_TexCoord[0].z = gl_Color.r; 

}
PIXEL
uniform sampler2D tex;


void main()
{
	gl_FragColor =  vec4(0,0,0,texture2D(tex,gl_TexCoord[0].xy).r *gl_TexCoord[0].z) ;
}
