Import
EXRLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { EXRLoader } from 'three/addons/loaders/EXRLoader.js';
Constructor
new EXRLoader( manager : LoadingManager )
Constructs a new EXR loader.
| manager |
The loading manager. |
Properties
.outputFormat : RGBAFormat | RGFormat | RedFormat
Texture output format.
Default is RGBAFormat.
.type : HalfFloatType | FloatType
The texture type.
Default is HalfFloatType.
Methods
.parse( buffer : ArrayBuffer ) : DataTextureLoader~TexData
Parses the given EXR texture data.
| buffer |
The raw texture data. |
- Overrides: DataTextureLoader#parse
- Returns: An object representing the parsed texture data.
.setDataType( value : HalfFloatType | FloatType ) : EXRLoader
Sets the texture type.
| value |
The texture type to set. |
- Returns: A reference to this loader.
.setOutputFormat( value : RGBAFormat | RGFormat | RedFormat ) : EXRLoader
Sets texture output format. Defaults to RGBAFormat.
| value |
Texture output format. |
- Returns: A reference to this loader.