summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-14 16:40:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-14 16:40:28 +0200
commita99c6ebd1c24e3f645e2c07591cfcfa97a162a6b (patch)
treea67bbfd1b7348061ed709227f7a5ff50dc69c58e /shaders
parent1348ae35475a8885a362caa9d51c79c04a459ee8 (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 82900963..8b3f2dba 100644
--- a/shaders/tile-shader.vert
+++ b/shaders/tile-shader.vert
@@ -10,6 +10,6 @@ noperspective out vec2 frag_texcoords;
void main() {
float cx = 1/scale.x, cy = 1/scale.y;
float x = -position.y, y = -position.x, z = position.z;
- gl_Position = vec4((x-y+offset.x)*cx, (x+y+z*2)*cy*0.5625-offset.y*cy, 0, 1);
+ gl_Position = vec4((x-y+offset.x)*cx, (x+y+z*2)*cy*.59-offset.y*cy, 0, 1);
frag_texcoords = texcoords;
}