diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-13 15:55:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-13 15:55:49 +0200 |
commit | 1348ae35475a8885a362caa9d51c79c04a459ee8 (patch) | |
tree | d5b31e7d64569c377af940fe857ba580b5b0dea3 /shaders | |
parent | becc83c22e46fdbf5e264e7a5030f7c468af2bba (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 499d3e1f..82900963 100644 --- a/shaders/tile-shader.vert +++ b/shaders/tile-shader.vert @@ -8,8 +8,8 @@ layout (location = 1) in vec2 texcoords; noperspective out vec2 frag_texcoords; void main() { - float cx = 1/scale.x, cy = 1/(scale.y*4./3.); + 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*0.75-offset.y*cy, 0, 1); + gl_Position = vec4((x-y+offset.x)*cx, (x+y+z*2)*cy*0.5625-offset.y*cy, 0, 1); frag_texcoords = texcoords; } |