Import
ChromaticAberrationNode is an addon, and must be imported explicitly, see Installation#Addons.
import { chromaticAberration } from 'three/addons/tsl/display/ChromaticAberrationNode.js';
Constructor
new ChromaticAberrationNode( textureNode : TextureNode, strengthNode : Node, centerNode : Node, scaleNode : Node )
Constructs a new chromatic aberration node.
| textureNode |
The texture node that represents the input of the effect. |
| strengthNode |
The strength of the chromatic aberration effect as a node. |
| centerNode |
The center point of the effect as a node. |
| scaleNode |
The scale factor for stepped scaling from center as a node. |
Properties
.centerNode : Node
A node holding the center point of the effect.
.strengthNode : Node
A node holding the strength of the effect.
.textureNode : texture
The texture node that represents the input of the effect.
Methods
.setup( builder : NodeBuilder ) : ShaderCallNodeInternal
This method is used to setup the effect's TSL code.
| builder |
The current node builder. |
- Overrides: TempNode#setup