From 3091227ae4eecf837dd2faecf572bbb3a08de9de Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 4 Oct 2022 18:46:10 +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 dfab845e..fe81ba3b 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.y, y = position.x, z = position.z; + float x = -position.x, y = -position.y, 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