Model loading · function
describeImage
Identify an image and read its dimensions, or refuse by name.
Explained in Importing models.
function describeImage(bytes: Uint8Array): ImageInfoimport { describeImage } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
bytes | Uint8Array |
In depth
Refusing is the designed outcome for anything else. A tier 2 import that quietly dropped an unrecognised texture would produce a model that is merely the wrong colour, which is discovered late and blamed on the shading.