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.vert3
1 files changed, 2 insertions, 1 deletions
diff --git a/shaders/tile-shader.vert b/shaders/tile-shader.vert
index 3c5c7c68..670015b1 100644
--- a/shaders/tile-shader.vert
+++ b/shaders/tile-shader.vert
@@ -1,10 +1,11 @@
layout(location = 0) in vec4 position;
layout(location = 1) in vec2 textureCoordinates;
+uniform mat4 projection;
out vec2 interpolatedTextureCoordinates;
void main() {
interpolatedTextureCoordinates = textureCoordinates;
- gl_Position = position;
+ gl_Position = projection * position;
}