Model loading · const

MODEL_FORMATS

Every extension this project reads, in the order a bundle should be picked from.

Explained in Importing models.

const MODEL_FORMATS: readonly
import { MODEL_FORMATS } from '@driftengine/assets';

In depth

Sorted by tier first and then by how much of a scene the format can carry. .glb beats .gltf only because one file cannot half-arrive; both read identically. It is data rather than a chain of ifs because two callers need to inventory a folder against it, and a chain of ifs cannot be enumerated.