Model loading · interface

GlbExportOptions

What an export may need from its host.

Explained in Importing models.

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

Properties

NameTypeDescription
encodePngreadonlyoptionalPngEncoderPNG 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.