summaryrefslogtreecommitdiffhomepage
path: root/shaders/tile-shader.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/tile-shader.vert')
-rw-r--r--shaders/tile-shader.vert17
1 files changed, 8 insertions, 9 deletions
diff --git a/shaders/tile-shader.vert b/shaders/tile-shader.vert
index 6c12f1e2..17ead0d9 100644
--- a/shaders/tile-shader.vert
+++ b/shaders/tile-shader.vert
@@ -1,19 +1,18 @@
-#version 450
precision highp float;
layout (location = 0) uniform vec2 scale;
layout (location = 1) uniform vec2 offset;
+uniform sampler2D samplers[32];
-layout(location = 0) in vec4 position;
-layout(location = 1) in vec2 texcoord;
-layout(location = 2) flat in uint sampler_id;
-
-layout (location = 0) out vec2 out_texcoord;
-layout (location = 1) flat out uint out_sampler_id;
+in vec4 position;
+in vec2 texcoords;
+in uint sampler_id;
+out vec2 out_texcoords;
+flat out uint frag_sampler_id;
void main() {
- interpolatedTextureCoordinates = texcoord;
- out_sampler_id = sampler_id;
+ out_texcoords = texcoords;
+ frag_sampler_id = sampler_id;
float cx = 2/scale.x, cy = 2/scale.y;
float x = position.y, y = position.x, z = position.z;