LUT3dlLoader
Extends:
A 3D LUT loader that supports the .3dl file format.
Based on an implementation by Garrett Johnson: https://github.com/gkjohnson/threejs-sandbox/tree/master/3d-lut
For more details see: http://download.autodesk.com/us/systemdocs/help/2011/lustre/index.html?url=./files/WSc4e151a45a3b785a24c3d9a411df9298473-7ffd.htm,topicNumber=d0e9492
Method Summary
Public Methods | ||
public |
load(url: String, onLoad: Function, onProgress: Function, onError: Function): Promise<LookupTexture> Loads a LUT. |
|
public |
parse(input: String): LookupTexture Parses the given data. |
Public Methods
public load(url: String, onLoad: Function, onProgress: Function, onError: Function): Promise<LookupTexture> source
Loads a LUT.
Params:
Name | Type | Attribute | Description |
url | String | The URL of the 3dl-file. |
|
onLoad | Function |
|
A callback that receives the loaded lookup texture. |
onProgress | Function |
|
A progress callback that receives the XMLHttpRequest instance. |
onError | Function |
|
An error callback that receives the URL of the file that failed to load. |
public parse(input: String): LookupTexture source
Parses the given data.
Params:
Name | Type | Attribute | Description |
input | String | The LUT data. |
Throw:
Fails if the data is invalid. |