diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-04 18:46:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-04 18:46:10 +0200 |
commit | 3091227ae4eecf837dd2faecf572bbb3a08de9de (patch) | |
tree | 1d7b5f3ef1ec77c04e32611f9ff6ce644dc4a0a4 /shaders | |
parent | b4b810450d14fbe718bc55fe005e76d886a419bf (diff) |
a
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/tile-shader.vert | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |