// $Id: scale2x.vert 5473 2006-06-20 20:02:01Z m9710797 $

uniform vec2 texSize;

varying vec2 texStep; // could be uniform
varying vec2 coord2pi;

float pi = 4.0 * atan(1.0);
float pi2 = 2.0 * pi;

void main()
{
	gl_Position = ftransform();
	gl_TexCoord[0] = gl_MultiTexCoord0;
	coord2pi = gl_MultiTexCoord0.st * texSize * pi2;
	texStep = 1.0 / texSize;
}
