TypologySienna Chen
LookLightweight

Chromatic aberration

Colors split at the edges like a cheap lens.

The red, green and blue of the image slide slightly apart toward the edges, like a cheap lens. A little makes a render feel like a photograph; a lot looks like a glitch. Best when tied to speed or a transition.

Breaks when
reads as a glitch if too strong
Also called
RGB shift, RGBShiftShader, lens distortion

Prompts

Lens fringe that stays quiet
A custom full-screen shader pass in Three.js: offset = (uv − 0.5) × dot(uv − 0.5, uv − 0.5) × strength, strength 0.012, red sampled at uv + offset and blue at uv − offset. Combine with a mild barrel distortion (k = 0.04) so it reads as one lens. Expose strength and k in lil-gui; default to values you cannot see unless you look for them.
Aberration as a transition
Use chromatic aberration as the page-transition effect: on route change, animate strength from 0 to 0.08 and back over 600 ms with an ease-in-out, along with a 20 px vertical blur. Only during the transition; zero at rest. Implement with a single ShaderPass and GSAP.
Per-object, not full-screen
Apply the channel split only to a glass logo: render the logo to its own target and composite it with per-channel offsets driven by its velocity on screen (velocity from the previous frame’s projected position). Everything else stays clean.

Related

Resources · 1

  • postprocessing (pmndrs)Merges effects into one pass; prefer over three’s EffectComposer.pmndrsGitHub · code · demoJul 15, 2026