From 573eb0dc44da073462e24f15a253a51a4013ee58 Mon Sep 17 00:00:00 2001 From: Adrian Ulbrich Date: Sat, 9 Nov 2019 02:44:29 +0100 Subject: Added support for colored triangles --- Unicity.Renderer/shaders/test.frag | 1 - Unicity.Renderer/shaders/test.vert | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'Unicity.Renderer/shaders') diff --git a/Unicity.Renderer/shaders/test.frag b/Unicity.Renderer/shaders/test.frag index 58db0c6..8deca4b 100644 --- a/Unicity.Renderer/shaders/test.frag +++ b/Unicity.Renderer/shaders/test.frag @@ -1,7 +1,6 @@ #version 400 core out vec4 FragColor; - in vec4 vertexColor; void main() diff --git a/Unicity.Renderer/shaders/test.vert b/Unicity.Renderer/shaders/test.vert index c0395f0..99496c0 100644 --- a/Unicity.Renderer/shaders/test.vert +++ b/Unicity.Renderer/shaders/test.vert @@ -1,12 +1,12 @@ #version 400 core layout (location = 0) in vec3 aPos; +layout (location = 1) in vec3 aColor; out vec4 vertexColor; -uniform vec4 inColor; void main() { gl_Position = vec4(aPos, 1.0f); - vertexColor = inColor; + vertexColor = vec4(aColor, 1.0f); } \ No newline at end of file -- cgit v1.2.3