Model loading · function
decodeBcImage
blocks as an RGBA image, eight bits a channel, every channel meaning what an image's does.
Explained in Importing models.
function decodeBcImage(format: BcFormat, width: number, height: number, blocks: Uint8Array): Uint8Arrayimport { decodeBcImage } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
format | BcFormat | |
width | number | |
height | number | |
blocks | Uint8Array |