From 3e4e449f585cddd590fb7f77a849ccc17c640425 Mon Sep 17 00:00:00 2001 From: iurii plugatarov Date: Sun, 11 Aug 2024 02:12:21 +0300 Subject: linal --- src/shaders/triangle.vert.glsl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/shaders/triangle.vert.glsl') diff --git a/src/shaders/triangle.vert.glsl b/src/shaders/triangle.vert.glsl index 22041cd..08be169 100644 --- a/src/shaders/triangle.vert.glsl +++ b/src/shaders/triangle.vert.glsl @@ -1,14 +1,13 @@ #version 330 core layout (location = 0) in vec3 aPos; -layout (location = 1) in vec3 aColor; -layout (location = 2) in vec2 aTexCoord; +layout (location = 1) in vec2 aTexCoord; -out vec3 ourColor; out vec2 TexCoord; + +uniform mat4 transform; void main() { - gl_Position = vec4(aPos, 1.0); - ourColor = aColor; - TexCoord = aTexCoord; -} + gl_Position = transform * vec4(aPos, 1.0f); + TexCoord = vec2(aTexCoord.x, aTexCoord.y); +} -- cgit 1.4.1-2-gfad0