This commit is contained in:
numzero 2024-09-22 15:40:47 +03:00
parent 3d150208e0
commit 1d9ff55163

View File

@ -26,16 +26,16 @@ fn main() {
let indices = glium::index::NoIndices(glium::index::PrimitiveType::LineLoop);
let shape = vec![
Vertex {
position: [-1., 0., 2.],
position: [-1., 0., 4.],
},
Vertex {
position: [0., -1., 2.],
position: [0., -1., 4.],
},
Vertex {
position: [1., 0., 2.],
position: [1., 0., 4.],
},
Vertex {
position: [0., 1., 2.],
position: [0., 1., 4.],
},
];
let vertex_buffer = VertexBuffer::new(&display, &shape).unwrap();