Inheritance: Loader → DataTextureLoader →
A loader for the OpenEXR texture format.
EXRLoader currently supports uncompressed, ZIP(S), RLE, PIZ, B44/A and DWA/B compression. Supports reading as UnsignedByte, HalfFloat and Float type data texture.
const loader = new EXRLoader();
const texture = await loader.loadAsync( 'textures/memorial.exr' );
EXRLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { EXRLoader } from 'three/addons/loaders/EXRLoader.js';
Constructs a new EXR loader.
manager
The loading manager.
Texture output format.
Default is RGBAFormat.
For multi-part EXR files, the index of the part to load.
Default is 0.
The texture type.
Default is HalfFloatType.
Parses the given EXR 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.
Sets texture output format. Defaults to RGBAFormat.
value
Texture output format.
Returns: A reference to this loader.
For multi-part EXR files, sets which part to load.
value
The part index to load.
Returns: A reference to this loader.