From 4e4924fe3da7fe160c49eb3b8b59757e03af0fd1 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sun, 7 May 2017 20:34:05 -0400 Subject: [PATCH] Use culling to draw sea of cubes. --- shaded_cube.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaded_cube.rs b/shaded_cube.rs index 240ddbf..f334d2f 100644 --- a/shaded_cube.rs +++ b/shaded_cube.rs @@ -93,7 +93,7 @@ impl<'a> ShadedCube<'a> { write: true, ..Default::default() }, - blend: glium::Blend::alpha_blending(), + backface_culling: glium::draw_parameters::BackfaceCullingMode::CullCounterClockwise, ..Default::default() }; frame.draw(&self.vertexes, &self.indices, &self.program, uniforms, ¶ms).unwrap(); -- 2.25.1