File: LUTCubeLoader.md | Updated: 11/15/2025
A loader for the Cube LUT format.
References:
const loader = new LUTCubeLoader();
const map = loader.loadAsync( 'luts/Bourbon 64.CUBE' );
LUTCubeLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { LUTCubeLoader } from 'three/addons/loaders/LUTCubeLoader.js';
Constructs a new Cube LUT loader.
manager | The loading manager.
---|---
The texture type.
Default is UnsignedByteType.
Starts loading from the given URL and passes the loaded Cube LUT asset to the onLoad() callback.
url | The path/URL of the file to be loaded. This can also be a data URI.
---|---
onLoad | Executed when the loading process has been finished.
onProgress | Executed while the loading is in progress.
onError | Executed when errors occur.
Overrides: Loader#load
Parses the given Cube LUT data and returns the resulting 3D data texture.
input | The raw Cube LUT data as a string.
---|---
Overrides: Loader#parse
Returns: The parsed Cube LUT.
Sets the texture type.
type | The texture type to set.
---|---
Returns: A reference to this loader.