File: HDRCubeTextureLoader.md | Updated: 11/15/2025
A loader for loading HDR cube textures.
const loader = new HDRCubeTextureLoader();
loader.setPath( 'textures/cube/pisaHDR/' );
const cubeTexture = await loader.loadAsync( [ 'px.hdr', 'nx.hdr', 'py.hdr', 'ny.hdr', 'pz.hdr', 'nz.hdr' ] );
scene.background = cubeTexture;
scene.environment = cubeTexture;
HDRCubeTextureLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { HDRCubeTextureLoader } from 'three/addons/loaders/HDRCubeTextureLoader.js';
Constructs a new HDR cube texture loader.
manager | The loading manager.
---|---
The internal HDR loader that loads the individual textures for each cube face.
The texture type.
Default is HalfFloatType.
Starts loading from the given URLs and passes the loaded HDR cube texture to the onLoad() callback.
urls | The paths/URLs of the files to be loaded. This can also be a data URIs.
---|---
onLoad | Executed when the loading process has been finished.
onProgress | Executed while the loading is in progress.
onError | Executed when errors occur.
Overrides: Loader#load
Returns: The HDR cube texture.
Sets the texture type.
value | The texture type to set.
---|---
Returns: A reference to this loader.