From 40979a9a312a43a6b5e862a2c8efa9a04b7fedba Mon Sep 17 00:00:00 2001 From: Luca Conte Date: Mon, 31 Mar 2025 13:18:54 +0200 Subject: [PATCH] enable backface culling --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 816e28e..f20b9e9 100644 --- a/src/main.c +++ b/src/main.c @@ -158,9 +158,9 @@ void init(void) { GLuint indices[] = { 1, 0, 10, 11, restart, - 2, 3, 9, 8, restart, + 2, 9, 3, 8, restart, 5, 4, 6, 7, restart, - 12, 13, 15, 14, restart + 12, 15, 13, 14, restart }; DEBUG("Creating vertext buffer"); @@ -199,6 +199,9 @@ void init(void) { glClearColor(0.1f, 0.1f, 0.1f, 1.0f); glViewport(0, 0, initialWindowWidth, initialWindowHeight); + glEnable(GL_CULL_FACE); + glFrontFace(GL_CCW); + initialiseStatusDisplay(); INFO("--- Initialisation done ---");