depth: glium::Depth {
test: glium::draw_parameters::DepthTest::IfLess,
write: true,
- .. Default::default()
+ ..Default::default()
},
blend: glium::Blend::alpha_blending(),
- .. Default::default()
+ ..Default::default()
};
let front_indices = IndexBuffer::new(display, PrimitiveType::LineLoop,
depth: glium::Depth {
test: glium::draw_parameters::DepthTest::IfLess,
write: true,
- .. Default::default()
+ ..Default::default()
},
blend: glium::Blend::alpha_blending(),
- .. Default::default()
+ ..Default::default()
};
frame.draw(&vb, &indices, program, uniforms, ¶ms).unwrap();
use std::ops::Mul;
#[derive(Default, PartialEq, Debug, Clone, Copy)]
-pub struct Vec3 (pub f32, pub f32, pub f32);
+pub struct Vec3(pub f32, pub f32, pub f32);
impl Add for Vec3 {
type Output = Vec3;