Skip to content

Instantly share code, notes, and snippets.

"""
Super bare-bones mesh exporter script.
Exports into a minimal data format ready to upload to the GPU.
Vertices are deduplicated, and using index buffer.
Mesh is triangulated. Hard edges are preserved.
Coordinates are mesh-local, converted to Y-up.
--- Data Format ---
VERTEX_COUNT: u32
INDEX_COUNT: u32
VERTEX_BUFFER: float[VERTEX_COUNT][8]