From d7bd9a3dbd3486a4b0615dc9f30a890ff6d04ec6 Mon Sep 17 00:00:00 2001 From: jvech Date: Mon, 29 Aug 2022 09:12:18 -0500 Subject: feat: 3D support added --- shaders/vertex.vsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shaders/vertex.vsh') diff --git a/shaders/vertex.vsh b/shaders/vertex.vsh index 220041d..987dc3b 100644 --- a/shaders/vertex.vsh +++ b/shaders/vertex.vsh @@ -2,12 +2,12 @@ layout (location = 0) in vec3 aPos; layout (location = 1) in vec3 aColor; -uniform mat4 trans; +uniform mat4 model, view, proj; out vec3 vertexColor; void main() { - gl_Position = trans * vec4(aPos, 1.0f); + gl_Position = proj * view * model * vec4(aPos, 1.0f); vertexColor = aColor; } -- cgit v1.2.3-70-g09d2