Drop the tripod
This commit is contained in:
parent
cd96691c35
commit
964c977500
|
|
@ -112,29 +112,6 @@ fn main() {
|
||||||
let fs_src = include_str!("ray.f.glsl");
|
let fs_src = include_str!("ray.f.glsl");
|
||||||
let program = Program::from_source(&display, vs_src, fs_src, None).unwrap();
|
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 scene = prepare_scene(&display);
|
||||||
|
|
||||||
let rot = Quat::from_euler(glam::EulerRot::YXZ, std::f32::consts::FRAC_PI_4, 0., 0.);
|
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);
|
target.clear_color(0.0, 0.0, 0.0, 0.0);
|
||||||
|
|
||||||
let mvp = proj * view;
|
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 {
|
let params = DrawParameters {
|
||||||
blend: glium::Blend {
|
blend: glium::Blend {
|
||||||
color: glium::BlendingFunction::Addition {
|
color: glium::BlendingFunction::Addition {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user