Capítulo 183 de 859

Chapter 183: LUTImageLoader

Core Idea

A loader for loading LUT images.

Key Concepts

  • flip : boolean: Whether to vertically flip the LUT or not.

Code Examples

const loader = new LUTImageLoader();
const map = loader.loadAsync( 'luts/NeutralLUT.png' );
  • What it demonstrates: Typical usage of LUTImageLoader.

Reference Tables

Constructor

Signature
new LUTImageLoader( manager : LoadingManager )

Properties

PropertyDescription
.flip : booleanWhether to vertically flip the LUT or not.

Methods

MethodDescription
.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 ) : ObjectParses the given LUT data and returns the resulting 3D data texture.

Key Takeaways

  1. LUTImageLoader extends: Loader
  2. Most relevant properties: flip.
  3. Key methods: load, parse.

Connects To