varying vec2 		texcoord;
varying vec4 		texcoord0;
varying vec4 		texcoord1;
varying vec4 		texcoord2;
varying vec4 		texcoord3;

uniform vec4	ofs0;
uniform vec4	ofs1;
uniform vec4	ofs2;
uniform vec4	ofs3;

void main()
{
	gl_Position = ftransform();
	
	texcoord = gl_MultiTexCoord0.st;
	texcoord0.xy = gl_MultiTexCoord0.st + ofs0.xy;
	texcoord1.xy = gl_MultiTexCoord0.st + ofs1.xy;
	texcoord2.xy = gl_MultiTexCoord0.st + ofs2.xy;
	texcoord3.xy = gl_MultiTexCoord0.st + ofs3.xy;
	texcoord0.zw = gl_MultiTexCoord0.st + ofs0.zw;
	texcoord1.zw = gl_MultiTexCoord0.st + ofs1.zw;
	texcoord2.zw = gl_MultiTexCoord0.st + ofs2.zw;
	texcoord3.zw = gl_MultiTexCoord0.st + ofs3.zw;
}