Skip to content

five-on-it / apps/tools/src/gltf-write

apps/tools/src/gltf-write ​

A writer of glTF binaries for the kits the tools make themselves (a region's own kit, region-level.ts), read back by gltf.ts as Blender's are: one top-level node per piece with its custom properties as extras, one primitive per colour (a material of that base colour), each primitive with the vertices its triangles use and nothing else, float positions and 32-bit indices. The pieces come in the glTF frame (+y up, right-handed).

Interfaces ​

Functions ​