mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 16:44:11 +02:00
wips
This commit is contained in:
parent
a264e1c939
commit
50144ca1dd
8 changed files with 45 additions and 18 deletions
|
|
@ -262,7 +262,8 @@ fn model_to_model(model: &Model, loader: &Loader, skin: usize) -> CpuModel {
|
|||
|
||||
let positions: Vec<Vec3> = mesh
|
||||
.vertices()
|
||||
.map(|vertex| map_coords(vertex.position + offset) * 10.0)
|
||||
.map(|vertex| model.vertex_to_world_space(vertex))
|
||||
.map(|position| map_coords(position) * 10.0)
|
||||
.map(|vertex: Vec3| (transforms * vertex.extend(1.0)).truncate())
|
||||
.collect();
|
||||
let normals: Vec<Vec3> = mesh.vertices().map(|vertex| vertex.normal.into()).collect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue