File: DDSLoader.md | Updated: 11/15/2025
A loader for the S3TC texture compression format.
const loader = new DDSLoader();
const map = loader.load( 'textures/compressed/disturb_dxt1_nomip.dds' );
map.colorSpace = THREE.SRGBColorSpace; // only for color textures
DDSLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { DDSLoader } from 'three/addons/loaders/DDSLoader.js';
Constructs a new DDS loader.
manager | The loading manager.
---|---
Parses the given S3TC 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.