From fd60a04483e5e6f8b1a99d566f39bb17891912ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 21 Aug 2017 09:22:09 -0400 Subject: [PATCH] gamnit: cull back faces MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/depth/depth.nit | 3 +++ 1 file changed, 3 insertions(+) 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 -- 1.7.9.5