Inheritance: Loader → DataTextureLoader →
A loader for the OpenEXR texture format.
EXRLoader currently supports uncompressed, ZIP(S), RLE, PIZ 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.
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.