summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-02-18 09:22:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-02-18 09:22:47 +0100
commitd0ff22593b1783bf6c76c1db3922075244a23d11 (patch)
tree36c79db467ed9643039869c5c2771559647d469a /shaders
parentdbc638717df7e4639693e06e4a581f57188d2647 (diff)
add projection
Diffstat (limited to 'shaders')
-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;
}