Model loading · interface

Impostor

Explained in Importing models.

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

Properties

NameTypeDescription
atlasreadonlyFloat32Arraysize * size RGBA texels.
sizereadonlynumberTexels across the whole atlas.
directionsreadonlynumberTiles across one axis; the atlas holds this squared.
framereadonlyViewFrameThe sphere the views were framed on, which is what places the sprite.