File: KTXLoader.md | Updated: 11/15/2025
A loader for the KTX texture compression format.
References:
const loader = new KTXLoader();
const map = loader.load( 'textures/compressed/lensflare_ASTC8x8.ktx' )
map.colorSpace = THREE.SRGBColorSpace; // only for color textures
KTXLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { KTXLoader } from 'three/addons/loaders/KTXLoader.js';
Constructs a new KTX loader.
manager | The loading manager.
---|---
Parses the given KTX texture data.
buffer | The raw texture data.
---|---
loadMipmaps | Whether to load mipmaps or not.
Overrides: CompressedTextureLoader#parse
Returns: An object representing the parsed texture data.