diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-03 14:10:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-03 14:10:10 +0200 |
commit | a21d15b01588c0cab6d27b4216a64ababc2eef09 (patch) | |
tree | 2bbb337e410a39548cbd5383e0768803b2b0825c /shaders/tile-shader.vert | |
parent | a16deb8ee39dd56f4b68a2808e4f619fd8d58ce7 (diff) |
a
Diffstat (limited to 'shaders/tile-shader.vert')
-rw-r--r-- | shaders/tile-shader.vert | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/shaders/tile-shader.vert b/shaders/tile-shader.vert index 17ead0d9..681a62a9 100644 --- a/shaders/tile-shader.vert +++ b/shaders/tile-shader.vert @@ -2,17 +2,13 @@ precision highp float; layout (location = 0) uniform vec2 scale; layout (location = 1) uniform vec2 offset; -uniform sampler2D samplers[32]; in vec4 position; in vec2 texcoords; -in uint sampler_id; -out vec2 out_texcoords; -flat out uint frag_sampler_id; +out vec2 frag_texcoords; void main() { - out_texcoords = texcoords; - frag_sampler_id = sampler_id; + frag_texcoords = texcoords; float cx = 2/scale.x, cy = 2/scale.y; float x = position.y, y = position.x, z = position.z; |