// $Id: tv.vert 5470 2006-06-20 18:31:34Z m9710797 $

uniform vec2 texSize;

varying vec4 intCoord;
varying vec4 cornerCoord;

void main()
{
	gl_Position = ftransform();
	intCoord.xy = gl_MultiTexCoord0.xy * texSize;
	intCoord.zw = -intCoord.xy;
	cornerCoord = vec4(gl_MultiTexCoord0.xy,
	                   gl_MultiTexCoord0.xy + 1.0 / texSize);
}
