From 8075eb3fd84e5537f9673e4a5b652d8bccfba219 Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 2 Dec 2022 20:34:12 +0100 Subject: [PATCH] new shader --- shadersrc/mesh.vert | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 shadersrc/mesh.vert diff --git a/shadersrc/mesh.vert b/shadersrc/mesh.vert new file mode 100644 index 0000000..2fe8dfb --- /dev/null +++ b/shadersrc/mesh.vert @@ -0,0 +1,13 @@ +#version 450 + +layout (location = 0) in vec3 vPosition; +layout (location = 1) in vec3 vNormal; +layout (location = 2) in vec3 vColor; + +layout (location = 0) out vec3 outColor; + +void main() +{ + gl_Position = vec4(vPosition, 1.0f); + outColor = vColor; +}