diff --git a/src/support/mod.rs b/src/support/mod.rs index 7b270b6..7039d58 100644 --- a/src/support/mod.rs +++ b/src/support/mod.rs @@ -103,29 +103,6 @@ pub fn load_ground(display: &Display) -> VertexBufferAny { tex_coords: [1.0, 1.0], }); - /*for object in data.objects.iter() { - for polygon in object.groups.iter().flat_map(|g| g.polys.iter()) { - match polygon { - obj::SimplePolygon(indices) => { - for v in indices.iter() { - let position = data.position[v.0]; - let texture = v.1.map(|index| data.texture[index]); - let normal = v.2.map(|index| data.normal[index]); - - let texture = texture.unwrap_or([0.0, 0.0]); - let normal = normal.unwrap_or([0.0, 0.0, 0.0]); - - vertex_data.push(Vertex { - position, - normal, - texture, - }) - } - } - } - } - }*/ - glium::vertex::VertexBuffer::new(display, &vertex_data) .unwrap() .into()