Model loading · interface
GlbExportOptions
What an export may need from its host.
Explained in Importing models.
interface GlbExportOptionsimport type { GlbExportOptions } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
encodePngreadonlyoptional | PngEncoder | PNG bytes for an RGBA image, needed only for a texture held as raw texels or BC blocks, which glTF has no image type for. Optional because nothing else needs it, and because an encoder is the host's to choose: the baker's command passes the Node one, and a page can pass its own. |