From 93a34748724cf1297ba3a90aff01601640b7bcb9 Mon Sep 17 00:00:00 2001 From: "re.kovalev" Date: Thu, 15 Dec 2022 13:45:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A8=D0=B5=D0=B9=D0=B4=D0=B5=D1=80=20=D1=81?= =?UTF-8?q?=20=D1=83=D1=87=D0=B5=D1=82=D0=BE=D0=BC=20mvp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shaders/shader.vert | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shaders/shader.vert b/shaders/shader.vert index 16f3963..c4739dc 100644 --- a/shaders/shader.vert +++ b/shaders/shader.vert @@ -2,8 +2,9 @@ layout(location = 0) in vec3 pos; +uniform mat4 mvp; + void main() { - gl_Position.xyz = pos; - gl_Position.w = 1.0; + gl_Position = mvp * vec4(pos, 1.0); }