From 341826e9a2b89713fc47ffbc914d18e23c7d9287 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 12 Oct 2023 21:29:36 +0200 Subject: feat(engine): add vertex coloring --- engine/fragment.glsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/fragment.glsl') 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); } -- cgit v1.2.3-18-g5258