mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-04 00:54:14 +02:00
example: material fixes
This commit is contained in:
parent
922699a089
commit
0f204f80ba
2 changed files with 52 additions and 32 deletions
|
|
@ -295,7 +295,7 @@ fn model_to_model(model: &Model, loader: &Loader, skin: usize) -> CpuModel {
|
|||
y: vertex.texture_coordinates[1],
|
||||
})
|
||||
.collect();
|
||||
let tangents: Vec<Vec4> = mesh.tangents().map(|tangent| tangent.into()).collect();
|
||||
let tangents: Vec<Vec4> = mesh.tangents().map(Vec4::from).collect();
|
||||
|
||||
CpuMesh {
|
||||
positions: Positions::F32(positions),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue