Lut3DNode.html.md 1.4 KB

Inheritance: EventDispatcher → Node → TempNode →

Lut3DNode

A post processing node for color grading via lookup tables.

Import

Lut3DNode is an addon, and must be imported explicitly, see Installation#Addons.

import { lut3D } from 'three/addons/tsl/display/Lut3DNode.js';

Constructor

new Lut3DNode( inputNode : Node, lutNode : TextureNode, size : number, intensityNode : Node. )

Constructs a new LUT node.

inputNode

The node that represents the input of the effect.

lutNode

A texture node that represents the lookup table.

size

The size of the lookup table.

intensityNode

Controls the intensity of the effect.

Properties

.inputNode : Node

The node that represents the input of the effect.

.intensityNode : Node.

Controls the intensity of the effect.

.lutNode : TextureNode

A texture node that represents the lookup table.

.size : UniformNode.

The size of the lookup table.

Methods

.setup( builder : NodeBuilder ) : ShaderCallNodeInternal

This method is used to setup the effect's TSL code.

builder

The current node builder.

Overrides: TempNode#setup

Source

examples/jsm/tsl/display/Lut3DNode.js

粤ICP备19079148号