diff options
| author | Adrian Ulbrich <adrian.ulbrich.2003@gmail.com> | 2019-11-09 02:44:29 +0100 |
|---|---|---|
| committer | Adrian Ulbrich <adrian.ulbrich.2003@gmail.com> | 2019-11-09 02:44:29 +0100 |
| commit | 573eb0dc44da073462e24f15a253a51a4013ee58 (patch) | |
| tree | 2866ef331702e36a0d4be6cb53c3799106ca4a85 /Unicity.Renderer/shaders/test.vert | |
| parent | 6fd78657f010bcc48c746a7b1e6ae9a0589adf5b (diff) | |
| download | Unicity-573eb0dc44da073462e24f15a253a51a4013ee58.tar.gz Unicity-573eb0dc44da073462e24f15a253a51a4013ee58.tar.bz2 Unicity-573eb0dc44da073462e24f15a253a51a4013ee58.zip | |
Added support for colored triangles
Diffstat (limited to 'Unicity.Renderer/shaders/test.vert')
| -rw-r--r-- | Unicity.Renderer/shaders/test.vert | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
