impl<'a> ShadedCube<'a> {
pub fn new(display: &Display, c: &Cube, program: &'a Program) -> ShadedCube<'a> {
// x--->
- // 4 ──────┐ 5
+ // 4 ──────┐ 5
// ╱┆ ╱│
// 0 ┌─────┐1 │
- // y │ 7+┄┄│┄┄+ 6
+ // y │ 7+┄┄│┄┄+ 6
// | │╱ │ ╱ /
// v └─────┘ z
// 3 2
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();