From 9de54d016d9367618ca770155f4ee82ff1692efa Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Fri, 27 Dec 2024 20:36:18 +0000 Subject: [PATCH] Enable back face culling --- src/main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cc b/src/main.cc index 45cb298..cadf204 100644 --- a/src/main.cc +++ b/src/main.cc @@ -167,6 +167,7 @@ int main() { glViewport(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT); glEnable(GL_DEPTH_TEST); + glEnable(GL_CULL_FACE); std::vector vertices = { // positions // normals // texture coords