//The Bonk Marquee-Shader PIXEL

uniform vec4 ambientColor;
uniform sampler2D colorMap;
uniform float timer;
uniform float uSpeed;
uniform float vSpeed;

void main()
{
	//Calculate UV animation
	vec2 displacement = gl_TexCoord[0].st;
	displacement.x += timer*uSpeed;
	displacement.y += timer*vSpeed;

	//Fetch color map texel
	vec4 texColor = texture2D(colorMap,displacement.xy);

	gl_FragColor = texColor * ambientColor;
}
