From: Bernie Innocenti Date: Mon, 8 May 2017 00:34:05 +0000 (-0400) Subject: Use culling to draw sea of cubes. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4e4924fe3da7fe160c49eb3b8b59757e03af0fd1;p=mandelwow.git Use culling to draw sea of cubes. --- 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();