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

attribute vec3	s2_vertex;
attribute vec4	s2_texcoords; 

void main()
{
	gl_Position = vec4(s2_vertex,1.0);

	t0.xy=s2_texcoords.xy;

	t1.xy=s2_texcoords.xy+ofs.xy;
	t2.xy=s2_texcoords.xy-ofs.xy;
	t3.xy=s2_texcoords.xy+ofs.xy*vec2(2.0);
	t4.xy=s2_texcoords.xy-ofs.xy*vec2(2.0);
	t5.xy=s2_texcoords.xy+ofs.xy*vec2(3.0);
	t6.xy=s2_texcoords.xy-ofs.xy*vec2(3.0);
}