#version 120
attribute vec2 position;
attribute vec2 tex_coords;
varying vec2 v_tex_coords;
uniform vec2 window_center;
void main() {
v_tex_coords = tex_coords;
vec2 p = vec2(position.x / window_center.x - 1.0,
1.0 - position.y / window_center.y);
gl_Position = vec4(p, 0.0, 1.0);
}