Capítulo 181 de 859

Chapter 181: LUT3dlLoader

Core Idea

A loader for the 3DL LUT format.

References:

Key Concepts

  • type : UnsignedByteType | FloatType: The texture type.

Code Examples

const loader = new LUT3dlLoader();
const map = loader.loadAsync( 'luts/Presetpro-Cinematic.3dl' );
  • What it demonstrates: Typical usage of LUT3dlLoader.

Reference Tables

Constructor

Signature
new LUT3dlLoader( 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 3DL LUT asset to the onLoad() callback.
.parse( input : string ) : ObjectParses the given 3DL LUT data and returns the resulting 3D data texture.
`.setType( type : UnsignedByteTypeFloatType ) : LUT3dlLoader`

Key Takeaways

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

Connects To