rename transform

This commit is contained in:
Robin Appelman 2024-08-29 14:21:48 +02:00
commit 01f24876a0
3 changed files with 4 additions and 9 deletions

View file

@ -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();