Capítulo 430 de 859

Chapter 430: Lut3DNode

Core Idea

A post processing node for color grading via lookup tables.

Key Concepts

  • inputNode : Node: The node that represents the input of the effect.
  • intensityNode : Node.<float>: Controls the intensity of the effect.
  • lutNode : TextureNode: A texture node that represents the lookup table.
  • size : UniformNode.<float>: The size of the lookup table.

Code Examples

import { lut3D } from 'three/addons/tsl/display/Lut3DNode.js';
  • What it demonstrates: Typical usage of Lut3DNode.

Reference Tables

Constructor

Signature
new Lut3DNode( inputNode : Node, lutNode : TextureNode, size : number, intensityNode : Node.<float> )

Properties

PropertyDescription
.inputNode : NodeThe node that represents the input of the effect.
.intensityNode : Node.<float>Controls the intensity of the effect.
.lutNode : TextureNodeA texture node that represents the lookup table.
.size : UniformNode.<float>The size of the lookup table.

Methods

MethodDescription
.setup( builder : NodeBuilder ) : ShaderCallNodeInternalThis method is used to setup the effect's TSL code.

Key Takeaways

  1. Lut3DNode extends: EventDispatcher → Node → TempNode
  2. Most relevant properties: inputNode, intensityNode, lutNode, size.
  3. Key methods: setup.

Connects To