Capítulo 182 de 859

Chapter 182: LUTCubeLoader

Core Idea

A loader for the Cube LUT format.

References:

Key Concepts

  • type : UnsignedByteType | FloatType: The texture type.

Code Examples

const loader = new LUTCubeLoader();
const map = loader.loadAsync( 'luts/Bourbon 64.CUBE' );
  • What it demonstrates: Typical usage of LUTCubeLoader.

Reference Tables

Constructor

Signature
new LUTCubeLoader( manager : LoadingManager )

Properties

PropertyDescription
`.type : UnsignedByteTypeFloatType`

Methods

MethodDescription
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback )Starts loading from the given URL and passes the loaded Cube LUT asset to the onLoad() callback.
.parse( input : string ) : ObjectParses the given Cube LUT data and returns the resulting 3D data texture.
`.setType( type : UnsignedByteTypeFloatType ) : LUTCubeLoader`

Key Takeaways

  1. LUTCubeLoader extends: Loader
  2. Most relevant properties: type.
  3. Key methods: load, parse, setType.

Connects To