mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 16:44:11 +02:00
cleanup
This commit is contained in:
parent
0f204f80ba
commit
2b706a0577
1 changed files with 1 additions and 4 deletions
|
|
@ -290,10 +290,7 @@ fn model_to_model(model: &Model, loader: &Loader, skin: usize) -> CpuModel {
|
|||
let normals: Vec<Vec3> = mesh.vertices().map(|vertex| vertex.normal.into()).collect();
|
||||
let uvs: Vec<Vec2> = mesh
|
||||
.vertices()
|
||||
.map(|vertex| Vec2 {
|
||||
x: vertex.texture_coordinates[0],
|
||||
y: vertex.texture_coordinates[1],
|
||||
})
|
||||
.map(|vertex| vertex.texture_coordinates.into())
|
||||
.collect();
|
||||
let tangents: Vec<Vec4> = mesh.tangents().map(Vec4::from).collect();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue