diff options
Diffstat (limited to 'shaders/default.v.glsl')
-rw-r--r-- | shaders/default.v.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/default.v.glsl b/shaders/default.v.glsl index 675d666..197fdbe 100644 --- a/shaders/default.v.glsl +++ b/shaders/default.v.glsl @@ -2,10 +2,10 @@ attribute vec2 pos; varying vec2 texcoord; -uniform float width; +uniform float width, height; void main() { gl_Position = vec4(pos, 0.0, 1.0); - texcoord = sign(pos) * vec2(width/1024.0, 240.0/-512.0) + vec2(width/1024.0, 240.0/512.0); + texcoord = sign(pos) * vec2(width/1024.0, height/-1024.0) + vec2(width/1024.0, height/1024.0); } |