varying vec2 	texcoord;
varying vec2	t0,t1,t2,t3,t4,t5;
uniform float 	ofs;

attribute vec3	s2_vertex;
attribute vec4	s2_texcoords; 

void main()
{
	gl_Position = vec4(s2_vertex,1.0);
	texcoord = s2_texcoords.st;	

	float xofs=ofs;
	t0.x=texcoord.x-xofs;
	t0.y=texcoord.y;
	t3.x=texcoord.x+xofs;
	t3.y=texcoord.y;

	xofs+=ofs;
	t1.x=texcoord.x-xofs;
	t1.y=texcoord.y;
	t4.x=texcoord.x+xofs;
	t4.y=texcoord.y;
	
	xofs+=ofs;
	t2.x=texcoord.x-xofs;
	t2.y=texcoord.y;
	t5.x=texcoord.x+xofs;
	t5.y=texcoord.y;
}