summaryrefslogtreecommitdiffhomepage
path: root/shaders/tile.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/tile.vert')
-rw-r--r--shaders/tile.vert3
1 files changed, 1 insertions, 2 deletions
diff --git a/shaders/tile.vert b/shaders/tile.vert
index 8b3f2dba..b512b7ac 100644
--- a/shaders/tile.vert
+++ b/shaders/tile.vert
@@ -8,8 +8,7 @@ layout (location = 1) in vec2 texcoords;
noperspective out vec2 frag_texcoords;
void main() {
- float cx = 1/scale.x, cy = 1/scale.y;
float x = -position.y, y = -position.x, z = position.z;
- gl_Position = vec4((x-y+offset.x)*cx, (x+y+z*2)*cy*.59-offset.y*cy, 0, 1);
+ gl_Position = vec4((x-y+offset.x)*scale.x, ((x+y+z*2)*.59-offset.y)*scale.y, 0, 1);
frag_texcoords = texcoords;
}