Import
UltraHDRLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { UltraHDRLoader } from 'three/addons/loaders/UltraHDRLoader.js';
Constructor
new UltraHDRLoader( manager : LoadingManager )
Constructs a new Ultra HDR loader.
| manager |
The loading manager. |
Properties
.type : HalfFloatType | FloatType
The texture type.
Default is HalfFloatType.
Methods
.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.
| url |
The path/URL of the files to be loaded. This can also be a data URI. |
| onLoad |
Executed when the loading process has been finished. |
| onProgress |
Executed while the loading is in progress. |
| onError |
Executed when errors occur. |
- Overrides: Loader#load
- Returns: The Ultra HDR texture.
.parse( buffer : ArrayBuffer, onLoad : function )
Parses the given Ultra HDR texture data.
| buffer |
The raw texture data. |
| onLoad |
The |
- Overrides: Loader#parse
.setDataType( value : HalfFloatType | FloatType ) : UltraHDRLoader
Sets the texture type.
| value |
The texture type to set. |
- Returns: A reference to this loader.