Avoid bottle-neck while drwing lines, fix surface

This commit is contained in:
PedroEdiaz
2024-12-01 12:19:53 -06:00
parent 8be2052c45
commit 6c322a9759
4 changed files with 45 additions and 38 deletions

View File

@@ -84,17 +84,17 @@ void main_loop(void)
#ifndef DEBUG
load_mdl_matrix(shader_plain, 0, 0);
draw_mesh(m_axis, 1);
draw_mesh(m_axis);
load_mdl_matrix(shader_plain, 1, 1);
draw_mesh(m_axis, 1);
draw_mesh(m_axis);
load_mdl_matrix(shader_plain, 2, 2);
draw_mesh(m_axis, 1);
draw_mesh(m_axis);
#endif
load_mdl_matrix(shader, 0, 3);
draw_mesh(m_surface, 0);
draw_mesh(m_surface);
load_mdl_matrix(shader_plain, 0, 3);
draw_mesh(m_surface, 1);
draw_mesh_lines(m_surface);
}
int main(void)