Geometry::add_geometry should construct vertices when reading indices, but also push new indices to an index buffer. The new index buffer can remove duplicate vertices in a separate step.
The number of uvs and normals must either be 0 or match the number of positions.
Geometry::add_geometry
should construct vertices when reading indices, but also push new indices to an index buffer. The new index buffer can remove duplicate vertices in a separate step.The number of uvs and normals must either be 0 or match the number of positions.
The custom vertex format must implement
Default
, and piston-quack can be used to get/set position, texture and normal coordinates.Should return
(Geometry, Result<VertexFormat, VertexFormatError>)
.