From: Brendan Hansen Date: Sat, 17 Oct 2020 20:13:16 +0000 (-0500) Subject: added face culling X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=2905512e18aef3881632263bdad6e2f7436effa0;p=csc718.git added face culling --- diff --git a/src/sim.c b/src/sim.c index 7aeae0f..39b48b2 100644 --- a/src/sim.c +++ b/src/sim.c @@ -57,7 +57,8 @@ init_glfw() { glfwSetFramebufferSizeCallback(window, glfw_resize_handler); glEnable(GL_CULL_FACE); - glCullFace(GL_CCW); + glFrontFace(GL_CCW); + glCullFace(GL_BACK); } internal GLuint