diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-02-18 09:22:47 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-02-18 09:22:47 +0100 |
| commit | d0ff22593b1783bf6c76c1db3922075244a23d11 (patch) | |
| tree | 36c79db467ed9643039869c5c2771559647d469a /shaders | |
| parent | dbc638717df7e4639693e06e4a581f57188d2647 (diff) | |
add projection
Diffstat (limited to 'shaders')
| -rw-r--r-- | shaders/tile-shader.vert | 3 |
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; } |
