Skip to content

chromaticAberration

chromaticAberration(tex, uv, amount?, angle?): VarNode <"vec4", JoinNode <"vec4">>

Defined in: packages/nodes/src/analog/chromaticAberration.ts:19

Chromatic aberration effect - separates RGB channels. Simulates lens imperfection or analog video artifacts.

TextureNode <"vec4">

Source texture

Node <"vec2">

UV coordinates

FloatInput = 0.005

Separation amount in UV space (default: 0.005)

FloatInput = 0

Separation angle in radians (default: 0 = horizontal)

VarNode <"vec4", JoinNode <"vec4">>

Color with chromatic aberration

const aberrated = chromaticAberration(texture, uv, 0.005)