const int targetWidth = 320;
const int targetHeight = 200;

void main() 
{
	vec2 screendims	= textureSize( InputTexture, 0 );
	vec2 pos = TexCoord;
	
	float size = 240/screendims.y;
	
	pos.x = floor(pos.x * virtualWidth) / virtualWidth;
	//pos.y = (floor(pos.y * targetHeight) + 0.2) / targetHeight;
	pos.y = (ceil(pos.y * targetHeight) -0.1) / targetHeight;
	
	vec3 a = texelFetch( InputTexture, ivec2( pos * screendims ), 0 ).rgb;
	
	FragColor = vec4(a, 1.0);
}