Home Reference Source
import {LUT3dlLoader} from 'postprocessing'
public class | source

LUT3dlLoader

Extends:

three~Loader → LUT3dlLoader
this class was deprecated. Use `three/addons/loaders/LUT3dlLoader.js` instead.

Method Summary

Public Methods
public

load(url: String, onLoad: Function, onProgress: Function, onError: Function): Promise<LookupTexture>

Loads a LUT.

public

Parses the given data.

Public Methods

public load(url: String, onLoad: Function, onProgress: Function, onError: Function): Promise<LookupTexture> source

Loads a LUT.

Params:

NameTypeAttributeDescription
url String

The URL of the 3dl-file.

onLoad Function
  • optional

A callback that receives the loaded lookup texture.

onProgress Function
  • optional

A progress callback that receives the XMLHttpRequest instance.

onError Function
  • optional

An error callback that receives the URL of the file that failed to load.

Return:

Promise<LookupTexture>

A promise that returns the lookup texture.

public parse(input: String): LookupTexture source

Parses the given data.

Params:

NameTypeAttributeDescription
input String

The LUT data.

Return:

LookupTexture

The lookup texture.

Throw:

Error

Fails if the data is invalid.