Capítulo 209 de 859
A loader for the Ultra HDR Image Format.
Existing HDR or EXR textures can be converted to Ultra HDR with this tool.
Current feature set:
const loader = new UltraHDRLoader();
const texture = await loader.loadAsync( 'textures/equirectangular/ice_planet_close.jpg' );
texture.mapping = THREE.EquirectangularReflectionMapping;
scene.background = texture;
scene.environment = texture;
Constructor
| Signature |
|---|
new UltraHDRLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
| `.type : HalfFloatType | FloatType` |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) : DataTexture | Starts loading from the given URL and passes the loaded Ultra HDR texture to the onLoad() callback. |
.parse( buffer : ArrayBuffer, onLoad : function ) | Parses the given Ultra HDR texture data. |
| `.setDataType( value : HalfFloatType | FloatType ) : UltraHDRLoader` |