aboutsummaryrefslogtreecommitdiffstats
path: root/vert.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'vert.glsl')
-rw-r--r--vert.glsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/vert.glsl b/vert.glsl
index 1730d35..2ee78d0 100644
--- a/vert.glsl
+++ b/vert.glsl
@@ -2,8 +2,13 @@
// SPDX-License-Identifier: MIT
#version 330 core
layout (location = 0) in vec3 pos;
+layout (location = 1) in vec3 color;
+layout (location = 2) in vec2 uv;
+
+out vec3 vcolor;
void main()
{
gl_Position = vec4(pos, 1.0);
+ vcolor = color;
}