Capítulo 183 de 859
A loader for loading LUT images.
const loader = new LUTImageLoader();
const map = loader.loadAsync( 'luts/NeutralLUT.png' );
Constructor
| Signature |
|---|
new LUTImageLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
.flip : boolean | Whether to vertically flip the LUT or not. |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded LUT to the onLoad() callback. |
.parse( dataArray : Uint8ClampedArray, size : number ) : Object | Parses the given LUT data and returns the resulting 3D data texture. |