Model loading · function
buildImpostor
Bake directions² views of a mesh into one atlas.
Explained in Importing models.
function buildImpostor(mesh: MeshData, directions: number): Impostorimport { buildImpostor } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
mesh | MeshData | |
directions | number |
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.