diff options
Diffstat (limited to 'Unicity.Renderer/shaders')
| -rw-r--r-- | Unicity.Renderer/shaders/test.frag | 1 | ||||
| -rw-r--r-- | Unicity.Renderer/shaders/test.vert | 4 |
2 files changed, 2 insertions, 3 deletions
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 |
