From e6825f6403036a874216d58fe1ac3989898e61f3 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 6 Jan 2014 22:54:05 -0800 Subject: The local clone on my laptop got messed up and some changes had not been pushed. This commit represents the status of the working copy from that clone. It unfortunately contains some changes that I did not intend to commit yet, but this seems like the best option at the moment. --- shaders/default.v.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shaders') diff --git a/shaders/default.v.glsl b/shaders/default.v.glsl index 128732f..675d666 100644 --- a/shaders/default.v.glsl +++ b/shaders/default.v.glsl @@ -2,9 +2,10 @@ attribute vec2 pos; varying vec2 texcoord; +uniform float width; void main() { gl_Position = vec4(pos, 0.0, 1.0); - texcoord = sign(pos) * vec2(320.0/1024.0, 240.0/-512.0) + vec2(320.0/1024.0, 240.0/512.0); + texcoord = sign(pos) * vec2(width/1024.0, 240.0/-512.0) + vec2(width/1024.0, 240.0/512.0); } -- cgit v1.2.3