Model loading · function
readKtx2
bytes as a KTX2 file of one 2D block texture. Throws, naming the reason, on anything else.
Explained in Importing models.
function readKtx2(bytes: Uint8Array): Ktx2Textureimport { readKtx2 } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
bytes | Uint8Array |