summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-09 11:42:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-09 11:42:29 +0200
commit9c9f083b8130c13c4e861f8e876c618e1eab38e8 (patch)
tree0d889940ce84ec6df81ab12671edba8787af3186
parentb7f1fbf93839b9d04b8932cd5bf5f1d593772246 (diff)
a
-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 302e4716..499d3e1f 100644
--- a/shaders/tile-shader.vert
+++ b/shaders/tile-shader.vert
@@ -8,7 +8,7 @@ layout (location = 1) in vec2 texcoords;
noperspective out vec2 frag_texcoords;
void main() {
- float cx = 2/scale.x, cy = 2/(scale.y*4./3.);
+ float cx = 1/scale.x, cy = 1/(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;