Removed commented OBJ loader that should have been removed before 3e64f976ca
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user