Model loading · function

encodeEtc2

rgba at width by height as format blocks, row of blocks after row of blocks.

Explained in Importing models.

function encodeEtc2(format: Etc2Format, rgba: Uint8Array, width: number, height: number): Uint8Array
import { encodeEtc2 } from '@driftengine/assets';

Parameters

ParameterTypeDescription
formatEtc2Format
rgbaUint8Array
widthnumber
heightnumber