File: HDRLoader.md | Updated: 11/15/2025
A loader for the RGBE HDR texture format.
const loader = new HDRLoader();
const envMap = await loader.loadAsync( 'textures/equirectangular/blouberg_sunrise_2_1k.hdr' );
envMap.mapping = THREE.EquirectangularReflectionMapping;
scene.environment = envMap;
HDRLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { HDRLoader } from 'three/addons/loaders/HDRLoader.js';
Constructs a new RGBE/HDR loader.
manager | The loading manager.
---|---
The texture type.
Default is HalfFloatType.
Parses the given RGBE texture data.
buffer | The raw texture data.
---|---
Overrides: DataTextureLoader#parse
Returns: An object representing the parsed texture data.
Sets the texture type.
value | The texture type to set.
---|---
Returns: A reference to this loader.