Model loading · interface
Ktx2Texture
A KTX2 file's blocks, and the colour space its format names.
Explained in Importing models.
interface Ktx2Textureimport type { Ktx2Texture } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
sourcereadonly | CompressedTextureSource | The blocks, for createSurfaceTexture where uploadsCompressed says the device takes them. |
srgbreadonly | boolean | Whether the file's format is an sRGB one: the colorSpace to create the texture in. |