Capítulo 164 de 859
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' );
Constructor
| Signature |
|---|
new EXRLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
| `.outputFormat : RGBAFormat | RGFormat |
.part : number | For multi-part EXR files, the index of the part to load. |
| `.type : HalfFloatType | FloatType` |
Methods
| Method | Description |
|---|---|
.parse( buffer : ArrayBuffer ) : DataTextureLoader~TexData | Parses the given EXR texture data. |
| `.setDataType( value : HalfFloatType | FloatType ) : EXRLoader` |
| `.setOutputFormat( value : RGBAFormat | RGFormat |
.setPart( value : number ) : EXRLoader | For multi-part EXR files, sets which part to load. |