This commit is contained in:
Robin Appelman 2023-12-13 22:54:27 +01:00
commit 80b9a71308
3 changed files with 4 additions and 4608 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ flamegraph.svg
.direnv .direnv
result result
.direnv .direnv
mats.txt

4605
mats.txt

File diff suppressed because it is too large Load diff

View file

@ -33,13 +33,13 @@ pub fn load_props<'a, I: Iterator<Item = Handle<'a, StaticPropLump>>>(
.map(|(prop, model)| { .map(|(prop, model)| {
let transform = let transform =
Mat4::from_translation(map_coords(prop.origin)) * Mat4::from(prop.rotation()); Mat4::from_translation(map_coords(prop.origin)) * Mat4::from(prop.rotation());
Ok::<_, Error>(PropData { PropData {
model, model,
transform, transform,
skin: prop.skin, skin: prop.skin,
}
}) })
}) .collect();
.collect::<Result<_, _>>()?;
let materials: HashMap<_, _> = props let materials: HashMap<_, _> = props
.iter() .iter()