📄 threejs/Addons/Loaders/DDSLoader

File: DDSLoader.md | Updated: 11/15/2025


title: DDSLoader category: Addons layout: docs

DDSLoader

A loader for the S3TC texture compression format.

Code Example

const loader = new DDSLoader();
const map = loader.load( 'textures/compressed/disturb_dxt1_nomip.dds' );
map.colorSpace = THREE.SRGBColorSpace; // only for color textures

Import

DDSLoader is an addon, and must be imported explicitly, see Installation#Addons.

import { DDSLoader } from 'three/addons/loaders/DDSLoader.js';

Constructor

new DDSLoader( manager : LoadingManager )

Constructs a new DDS loader.

manager | The loading manager.
---|---

Methods

.parse( buffer : ArrayBuffer, loadMipmaps : boolean ) : CompressedTextureLoader~TexData

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.

Source

examples/jsm/loaders/DDSLoader.js