diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 11:33:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 11:33:48 +0200 |
commit | 77452b5935a9acaf718e5d47e757ef16f3084496 (patch) | |
tree | 1996e54087384a720f0c4c2edcd14b4ba7b3f8c2 /shaders | |
parent | 5bfd97756ad5c51e6a810d67ae69d054c7b38875 (diff) |
a
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/tile-shader.vert | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/tile-shader.vert b/shaders/tile-shader.vert index 122b08f7..33837e83 100644 --- a/shaders/tile-shader.vert +++ b/shaders/tile-shader.vert @@ -10,7 +10,7 @@ noperspective out vec2 frag_texcoords; void main() { frag_texcoords = texcoords; - float cx = 2/scale.x, cy = 2/scale.y; + float cx = 2/scale.x, cy = 2/(scale.y*4./3.); float x = -position.y, y = -position.x, z = position.z; - gl_Position = vec4((x-y+offset.x)*cx, (x+y+z*2)*cx*0.75-offset.y*cx, 0, 1); + gl_Position = vec4((x-y+offset.x)*cx, (x+y+z*2)*cy*0.75-offset.y*cy, 0, 1); } |