Model loading · function

buildImpostor

Bake directions² views of a mesh into one atlas.

Explained in Importing models.

function buildImpostor(mesh: MeshData, directions: number): Impostor
import { buildImpostor } from '@driftengine/assets';

Parameters

ParameterTypeDescription
meshMeshData
directionsnumber

In depth

At least two directions a side, because a single tile has no octahedral coordinate to be at and an impostor of one view is a billboard — a different thing with a different failure.