summaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-01-06 22:54:05 -0800
committerMichael Pavone <pavone@retrodev.com>2014-01-06 22:54:05 -0800
commite6825f6403036a874216d58fe1ac3989898e61f3 (patch)
treefcf3d642f85e1e19259a05fa2f5a06bc695d9522 /shaders
parent9507839714b1e5a1a0a8487c8cdb10d69c5de6bc (diff)
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.
Diffstat (limited to 'shaders')
-rw-r--r--shaders/default.v.glsl3
1 files changed, 2 insertions, 1 deletions
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);
}