diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 11:34:38 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 11:34:38 +0200 |
commit | 7d3cabeece4dc3ea596e70739b6bc278adfb3eac (patch) | |
tree | a2e9f5ead93e47705bc7644fdad2c31111dd88ff /shaders | |
parent | 77452b5935a9acaf718e5d47e757ef16f3084496 (diff) |
a
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/tile-shader.vert | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shaders/tile-shader.vert b/shaders/tile-shader.vert index 33837e83..302e4716 100644 --- a/shaders/tile-shader.vert +++ b/shaders/tile-shader.vert @@ -8,9 +8,8 @@ layout (location = 1) in vec2 texcoords; noperspective out vec2 frag_texcoords; void main() { - frag_texcoords = texcoords; - 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)*cy*0.75-offset.y*cy, 0, 1); + frag_texcoords = texcoords; } |