Capítulo 466 de 859
Post processing node for shifting/splitting RGB color channels. The effect separates color channels and offsets them from each other.
import { rgbShift } from 'three/addons/tsl/display/RGBShiftNode.js';
Constructor
| Signature |
|---|
new RGBShiftNode( textureNode : TextureNode, amount : number, angle : number ) |
Properties
| Property | Description |
|---|---|
.amount : UniformNode.<float> | The amount of the RGB shift. |
.angle : UniformNode.<float> | Defines in which direction colors are shifted. |
.textureNode : TextureNode | The texture node that represents the input of the effect. |
Methods
| Method | Description |
|---|---|
.setup( builder : NodeBuilder ) : ShaderCallNodeInternal | This method is used to setup the effect's TSL code. |