summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-04 18:57:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-04 18:57:29 +0200
commitf0c7d4d241d7b415e4ba0ef2c0198e127d789ef4 (patch)
tree6678a51b981a75c400e24e286f02ece3101671f9 /shaders
parentb47d96ccd1ef1f424154511f7294ab969bd4f5ca (diff)
a
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile-shader.vert2
1 files changed, 1 insertions, 1 deletions
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);
}