/*
	Cut algorithm - XPeng
*/

#version 130
precision mediump float;

uniform sampler2D 	inText;		// input sampler
out     vec4 		outText;	// output sampler

uniform float offsetX, offsetY; // cut start point
uniform float scaleW, scaleH;	// cut size scale

void main()
{
	highp vec2 v_texCoord = gl_TexCoord[0].st;
	vec4 col1 = texture2D(inText, vec2(offsetX+scaleW*v_texCoord.x, offsetY+scaleH*v_texCoord.y));
    outText = col1;
}
