Skip to content

chromaticAberrationCustom

chromaticAberrationCustom(tex, uv, redOffset, blueOffset): Node<"vec4">

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

Asymmetric chromatic aberration with separate RGB offsets.

Parameters

tex

TextureNode<"vec4">

Source texture

uv

Node<"vec2">

UV coordinates

redOffset

Vec2Input = ...

Red channel offset

blueOffset

Vec2Input = ...

Blue channel offset

Returns

Node<"vec4">

Color with custom chromatic aberration