Model loading · const

browserInflate

DecompressionStream, which every target browser has and which needs no dependency.

Explained in Importing models.

const browserInflate: AsyncInflate
import { browserInflate } from '@driftengine/assets';

In depth

FBX writes zlib-wrapped deflate, so 'deflate' rather than 'deflate-raw'. Getting that wrong fails on the first two bytes rather than producing something subtly wrong, which is the good kind of mistake to make.