Capítulo 171 de 859
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;
Constructor
| Signature |
|---|
new HDRLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
| `.type : HalfFloatType | FloatType` |
Methods
| Method | Description |
|---|---|
.parse( buffer : ArrayBuffer ) : DataTextureLoader~TexData | Parses the given RGBE texture data. |
| `.setDataType( value : HalfFloatType | FloatType ) : HDRLoader` |