diff options
author | HampusM <hampus@hampusmat.com> | 2023-10-12 21:29:36 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-10-12 21:29:36 +0200 |
commit | 341826e9a2b89713fc47ffbc914d18e23c7d9287 (patch) | |
tree | b92b85bd85690d3e6475eac7e8c254700865bded /engine/fragment.glsl | |
parent | a4d66f8272c08c722a0a3fa6843ccf61e05d2928 (diff) |
feat(engine): add vertex coloring
Diffstat (limited to 'engine/fragment.glsl')
-rw-r--r-- | engine/fragment.glsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/fragment.glsl b/engine/fragment.glsl index 0c56a32..8b209c4 100644 --- a/engine/fragment.glsl +++ b/engine/fragment.glsl @@ -1,7 +1,9 @@ #version 330 core out vec4 FragColor; +in vec3 in_frag_color; + void main() { - FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f); + FragColor = vec4(in_frag_color, 1.0); } |