chromaticAberration
chromaticAberration(
tex,uv,amount?,angle?):Node<"vec4">
Defined in: packages/nodes/src/analog/chromaticAberration.ts:19
Chromatic aberration effect - separates RGB channels. Simulates lens imperfection or analog video artifacts.
Parameters
Section titled “Parameters”TextureNode <"vec4">
Source texture
Node <"vec2">
UV coordinates
amount?
Section titled “amount?”FloatInput = 0.005
Separation amount in UV space (default: 0.005)
angle?
Section titled “angle?”FloatInput = 0
Separation angle in radians (default: 0 = horizontal)
Returns
Section titled “Returns”Node <"vec4">
Color with chromatic aberration
Example
Section titled “Example”const aberrated = chromaticAberration(texture, uv, 0.005)