Skip to content

Chromatic Aberration

Offsets the red, green, and blue channels to simulate lens color fringing.

Category: Effects Menu path: Effects > Chromatic Aberration

Ports

PortTypeDirectionDescription
inimageRgba16finputInput image
outimageRgba16foutputImage with chromatic aberration applied

Parameters

ParamTypeDefaultDescription
amountscalar5.0Separation distance in pixels between the red and blue channels. Keyframeable.
modeenumRadialAberration pattern. Radial: channels spread outward from center. Directional: channels offset along a fixed angle.
anglescalar0Direction angle in radians (Directional mode only). 0 = horizontal. Keyframeable.
centervec2(0.5, 0.5)Center point for radial mode in UV space (0-1). Keyframeable.

Expose Channels

When enabled (E button on node header), adds input ports that override params via edge connections:

PortTypeOverrides
amount_inscalaramount
angle_inscalarangle
center_invec2center

How It Works

The shader samples the red channel at a negative UV offset, the green channel at the original UV, and the blue channel at a positive UV offset. In Radial mode, the offset direction points away from the center, and magnitude scales with distance from center -- mimicking real lens aberration where fringing increases toward the frame edges. In Directional mode, all pixels are offset along the same angle.

The output alpha is the maximum of the three channel samples, ensuring the combined result doesn't introduce holes.

Chromatic aberration expands content bounds (similar to blur), so the engine computes overscan to prevent clipping at comp edges.

Usage Examples

Basic: Subtle lens fringing

  1. Add a Chromatic Aberration node after your image
  2. Set mode to Radial and amount to 3-5
  3. Edges of the frame show color fringing, center stays sharp

Creative: Glitch effect

  1. Set mode to Directional with a high amount (20-50)
  2. Animate the angle to sweep the color split across the frame
  3. Combine with other effects for a digital glitch aesthetic

Advanced: Breathing lens simulation

  1. Keyframe amount from 0 to 8 and back over a few frames
  2. The color channels briefly separate and recombine
  3. Simulates the chromatic aberration shift during a lens rack focus

Tips

  • Radial mode looks most natural for simulating real lens optics
  • Amount is in pixels, so the effect scales with resolution -- a value of 5 at 1080p is subtle
  • In Radial mode, center (0.5, 0.5) matches the image center; shift it to simulate off-axis optics
  • Heavy chromatic aberration combined with Blur creates a dreamy, vintage lens look
  • Blur -- combine with CA for a complete lens simulation
  • Vignette -- pair with CA for a full analog lens look
  • UVRemap -- arbitrary UV-space distortion for more complex lens effects