Model loading · interface

BakeModelOptions

What the command's flags decide. Every field is optional and absent means the command's default.

Explained in Importing models.

interface BakeModelOptions
import type { BakeModelOptions } from '@driftengine/assets';

Properties

NameTypeDescription
namereadonlystringHEAD's name, unless the file carries its own: the source's name without its extension.
upreadonlyoptionalUpAxis | null--up: which way is up in the source, over what the file declares.
lodCellsreadonlyoptionalnumber | nullThe outline: null writes none, a number builds one at that many cells, and absent keeps the one a .drft export carried or builds one at the default.
findInstancesreadonlyoptionalboolean--no-instances is false: write merged copies as they came.
quantisereadonlyoptionalboolean--no-quantise is false.
blendAsCutoutreadonlyoptionalboolean--blend-as-cutout.
simplifyreadonlyoptionalnumber--simplify m.
sdfreadonlyoptionalnumber--sdf m.