diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-20 03:04:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-20 03:04:39 +0200 |
commit | b2f30235c9a2b11adc31567b044beb04ec7ac3e6 (patch) | |
tree | 3ac8a9d490708808105f3053ea2abb7c1074e061 | |
parent | 8fb653c9f48b81aa2ef986ac36bdb81c1fd5a4e9 (diff) |
aa
-rw-r--r-- | shaders/tile-shader.vert | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shaders/tile-shader.vert b/shaders/tile-shader.vert index 2b622317..8b3f2dba 100644 --- a/shaders/tile-shader.vert +++ b/shaders/tile-shader.vert @@ -5,12 +5,11 @@ layout (location = 1) uniform vec2 offset; layout (location = 0) in vec4 position; layout (location = 1) in vec2 texcoords; -layout (location = 2) in float foo = 1; 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*.59-offset.y*cy*foo, 0, 1); + gl_Position = vec4((x-y+offset.x)*cx, (x+y+z*2)*cy*.59-offset.y*cy, 0, 1); frag_texcoords = texcoords; } |