diff options
Diffstat (limited to 'shaders/tile.vert')
-rw-r--r-- | shaders/tile.vert | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/tile.vert b/shaders/tile.vert index ad038e6d..a539ed6b 100644 --- a/shaders/tile.vert +++ b/shaders/tile.vert @@ -1,7 +1,7 @@ precision highp float; layout (location = 0) uniform vec2 scale; -layout (location = 1) uniform vec2 offset; +layout (location = 1) uniform vec3 offset; layout (location = 0) in vec4 position; layout (location = 1) in vec2 texcoords; @@ -10,6 +10,6 @@ noperspective out vec2 frag_texcoords; void main() { float x = -position.y, y = -position.x, z = position.z; - gl_Position = vec4((x-y+offset.x)*scale.x, ((x+y+z*2)*.59-offset.y)*scale.y, depth, 1); + gl_Position = vec4((x-y+offset.x)*scale.x, ((x+y+z*2)*.59-offset.y)*scale.y, offset.z + depth, 1); frag_texcoords = texcoords; } |