From 446402c2e00ef9f80136b75a3af9c170d278b29a Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Mon, 14 Oct 2024 21:23:44 +0300 Subject: [PATCH] don't write unused color to vertices, utilize flat shading for only 2 important edges --- src/rendering/twn_gl_15_rendering.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rendering/twn_gl_15_rendering.c b/src/rendering/twn_gl_15_rendering.c index badefcf..ccc8626 100644 --- a/src/rendering/twn_gl_15_rendering.c +++ b/src/rendering/twn_gl_15_rendering.c @@ -418,9 +418,9 @@ bool push_quad_payload_to_vertex_buffer_builder(struct QuadBatch batch, /* equal for all (flat shaded) */ .c0 = m_color_packed_from(color), - .c1 = m_color_packed_from(color), + // .c1 = m_color_packed_from(color), .c2 = m_color_packed_from(color), - .c3 = m_color_packed_from(color), + // .c3 = m_color_packed_from(color), }; return push_to_vertex_buffer_builder(builder, &buffer_element, sizeof buffer_element); @@ -449,9 +449,9 @@ bool push_quad_payload_to_vertex_buffer_builder(struct QuadBatch batch, /* equal for all (flat shaded) */ .c0 = m_color_packed_from(color), - .c1 = m_color_packed_from(color), + // .c1 = m_color_packed_from(color), .c2 = m_color_packed_from(color), - .c3 = m_color_packed_from(color), + // .c3 = m_color_packed_from(color), }; return push_to_vertex_buffer_builder(builder, &buffer_element, sizeof buffer_element);