example: material fixes

This commit is contained in:
Robin Appelman 2023-12-12 22:03:23 +01:00
commit 0f204f80ba
2 changed files with 52 additions and 32 deletions

View file

@ -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),