From f0c7d4d241d7b415e4ba0ef2c0198e127d789ef4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 4 Oct 2022 18:57:29 +0200 Subject: a --- shaders/tile-shader.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders') diff --git a/shaders/tile-shader.vert b/shaders/tile-shader.vert index fe81ba3b..122b08f7 100644 --- a/shaders/tile-shader.vert +++ b/shaders/tile-shader.vert @@ -11,6 +11,6 @@ void main() { frag_texcoords = texcoords; float cx = 2/scale.x, cy = 2/scale.y; - float x = -position.x, y = -position.y, z = position.z; + 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); } -- cgit v1.2.3