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): Uint8Array
import { decodeBcImage } from '@driftengine/assets';

Parameters

ParameterTypeDescription
formatBcFormat
widthnumber
heightnumber
blocksUint8Array