From f51deb8db9a0dbf60e6ccd67bb2ff8c1aba5bbfb Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Fri, 28 Dec 2018 20:53:53 -0500 Subject: [PATCH] glsl/block_vertex.glsl now accepts a projection and a view matrix --- glsl/block_vertex.glsl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/glsl/block_vertex.glsl b/glsl/block_vertex.glsl index 0fe966d..118ffba 100644 --- a/glsl/block_vertex.glsl +++ b/glsl/block_vertex.glsl @@ -5,6 +5,11 @@ layout (location = 0) in vec3 vertex_position; layout (location = 1) in vec3 vertex_texture; layout (location = 2) in float vertex_lighting; + +uniform mat4 matrix_projection; + +uniform mat4 matrix_view; + void main() { gl_Position = vec4(vertex_position, 1.0f);