mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 16:44:11 +02:00
rename transform
This commit is contained in:
parent
8efdc90210
commit
01f24876a0
3 changed files with 4 additions and 9 deletions
|
|
@ -252,7 +252,7 @@ fn model_to_model(model: &Model, loader: &Loader, skin: usize) -> CpuModel {
|
|||
|
||||
let positions: Vec<Vec3> = mesh
|
||||
.vertices()
|
||||
.map(|vertex| model.vertex_to_world_space(vertex))
|
||||
.map(|vertex| model.apply_root_transform(vertex.position))
|
||||
.map(|position| map_coords(position) * 10.0)
|
||||
.map(|vertex: Vec3| (transforms * vertex.extend(1.0)).truncate())
|
||||
.collect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue