From: Alexis Laferrière Date: Mon, 21 Aug 2017 13:22:09 +0000 (-0400) Subject: gamnit: cull back faces X-Git-Url: http://nitlanguage.org gamnit: cull back faces Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/depth/depth.nit b/lib/gamnit/depth/depth.nit index 4139949..f6b5592 100644 --- a/lib/gamnit/depth/depth.nit +++ b/lib/gamnit/depth/depth.nit @@ -32,6 +32,9 @@ redef class App world_camera.reset_height(10.0) world_camera.near = 0.1 + # Cull the invisible triangles in the back of the geometries + glCullFace gl_BACK + # Prepare programs var programs = [versatile_program, normals_program, explosion_program, smoke_program, static_program, selection_program: GamnitProgram] for program in programs do