Skip to content

ColorGradingLUTEffectDesc

The ColorGradingLUTEffectDesc class is a Descriptor that applies color grading effects using a LUT (Lookup Table). You can adjust the overall color tone of the scene using LUT textures such as 3DL files.

Type: boolean | undefined

Description: Controls the visibility of the effect descriptor.

Default: true

Type: string | undefined

Description: Specifies the URL of the LUT file. 3DL format LUT files are supported.

Default: "https://raw.githubusercontent.com/pmndrs/postprocessing/refs/heads/main/demo/static/textures/lut/3dl/presetpro-cinematic.3dl"

Example:

{
colorGradingLUT: {
url: "https://example.com/my-lut.3dl",
}
}

Type: BlendMode | undefined

Description: Specifies the blend mode for the LUT effect.

Default: "colorBurn"

Valid values:

ValueDescription
"normal"Normal blend
"add"Additive blend
"multiply"Multiply blend
"screen"Screen blend
"overlay"Overlay blend
"colorBurn"Color burn (default)
"colorDodge"Color dodge
"softLight"Soft light
"hardLight"Hard light
"darken"Darken
"lighten"Lighten
"difference"Difference
"exclusion"Exclusion
"hue"Hue
"saturation"Saturation
"color"Color
"luminosity"Luminosity
"linearBurn"Linear burn
"linearDodge"Linear dodge
"linearLight"Linear light
"vividLight"Vivid light
"pinLight"Pin light
"hardMix"Hard mix

Example:

{
colorGradingLUT: {
blendMode: "normal",
}
}

Type: number | undefined

Description: Specifies the opacity of the LUT effect in the range of 0.0 to 1.0.

Default: 0.78

Example:

{
colorGradingLUT: {
opacity: 0.5,
}
}
import ThreeView from "@navaramap/three";
import { ColorGradingLUTEffectDesc } from "@navaramap/three_default_descs";
const view = new ThreeView();
await view.init();
// Add color grading LUT effect descriptor
const colorGradingDesc = view.addEffect<ColorGradingLUTEffectDesc>({
colorGradingLUT: {},
});
import ThreeView from "@navaramap/three";
import { ColorGradingLUTEffectDesc } from "@navaramap/three_default_descs";
import { DefaultPlugin } from "@navaramap/three_default_plugin";
const view = new ThreeView();
const plugin = new DefaultPlugin();
view.addPlugin(plugin);
await view.init();
plugin.addDefaultPhotorealScene();
// Add color grading with a custom LUT
const colorGradingDesc = view.addEffect<ColorGradingLUTEffectDesc>({
colorGradingLUT: {
url: "https://example.com/cinematic-lut.3dl",
blendMode: "colorBurn",
opacity: 0.8,
},
});
import ThreeView from "@navaramap/three";
import { ColorGradingLUTEffectDesc } from "@navaramap/three_default_descs";
const view = new ThreeView();
await view.init();
const colorGradingDesc = view.addEffect<ColorGradingLUTEffectDesc>({
colorGradingLUT: {
opacity: 0.5,
},
});
// Update the opacity later
colorGradingDesc.update({
colorGradingLUT: {
opacity: 0.9,
},
});

By using LUTs, you can easily apply various color grading effects such as cinematic color tones and film looks. 3DL format LUT files can be created with video editing software such as DaVinci Resolve.