diff --git a/crates/bevy_mikktspace/src/generated.rs b/crates/bevy_mikktspace/src/generated.rs index 186bb098959fe3..527764173f604d 100644 --- a/crates/bevy_mikktspace/src/generated.rs +++ b/crates/bevy_mikktspace/src/generated.rs @@ -64,7 +64,6 @@ use crate::{ #[derive(Copy, Clone)] pub struct STSpace { - // Normalised f pub vOs: Vec3, pub fMagS: f32, pub vOt: Vec3, @@ -223,6 +222,16 @@ impl STmpVert { } } +/// Stores a map of 'internal' triangle vertices to real 'faces' and vertices +/// This is used to deduplicate vertices with identical faces +struct TriangleMap { + /// Packed face/vertex index of each triangle + /// Note that this is an index to the first vertex + /// with the given properties, rather than necessarily + /// (Not impressed with this data layout) + triangles: Vec<[u32; 3]>, +} + pub unsafe fn genTangSpace(geometry: &mut impl Geometry, fAngularThreshold: f32) -> bool { let iNrFaces = geometry.num_faces(); // TODO: Accept in radians by default here?