From 964c97750051cf9601d103109f75d1f8bad7333f Mon Sep 17 00:00:00 2001 From: numzero Date: Sun, 22 Sep 2024 23:53:30 +0300 Subject: [PATCH] Drop the tripod --- src/bin/wireframe/main.rs | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/src/bin/wireframe/main.rs b/src/bin/wireframe/main.rs index 5507916..67ef7c0 100644 --- a/src/bin/wireframe/main.rs +++ b/src/bin/wireframe/main.rs @@ -112,29 +112,6 @@ fn main() { let fs_src = include_str!("ray.f.glsl"); let program = Program::from_source(&display, vs_src, fs_src, None).unwrap(); - let indices = glium::index::NoIndices(glium::index::PrimitiveType::LineLoop); - let shape = vec![ - Vertex { - position: [0., 0., 0.], - }, - Vertex { - position: [1., 0., 0.], - }, - Vertex { - position: [0., 0., 0.], - }, - Vertex { - position: [0., 1., 0.], - }, - Vertex { - position: [0., 0., 0.], - }, - Vertex { - position: [0., 0., 1.], - }, - ]; - let vertex_buffer = VertexBuffer::new(&display, &shape).unwrap(); - let scene = prepare_scene(&display); let rot = Quat::from_euler(glam::EulerRot::YXZ, std::f32::consts::FRAC_PI_4, 0., 0.); @@ -184,19 +161,6 @@ fn main() { target.clear_color(0.0, 0.0, 0.0, 0.0); let mvp = proj * view; - let uniforms = uniform! { - mvp: mvp.to_cols_array_2d(), - }; - - target - .draw( - &vertex_buffer, - &indices, - &program, - &uniforms, - &Default::default(), - ) - .unwrap(); let params = DrawParameters { blend: glium::Blend { color: glium::BlendingFunction::Addition {