aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/triangle.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/triangle.vert')
-rw-r--r--shaders/triangle.vert3
1 files changed, 3 insertions, 0 deletions
diff --git a/shaders/triangle.vert b/shaders/triangle.vert
index 3c61307..939f4a4 100644
--- a/shaders/triangle.vert
+++ b/shaders/triangle.vert
@@ -6,7 +6,10 @@ uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
+out vec4 colour;
+
void main()
{
gl_Position = projection * view * model * vec4(position, 1.0);
+ colour = vec4(position, 1.0);
}