Modulate
Effects /

Lens blur

Lens blur reproduces what a camera lens does to the out-of-focus parts of a photograph. Instead of smearing detail evenly the way a gaussian blur does, it spreads every point of light into the shape of the lens aperture, so highlights bloom into the bright discs and polygons known as bokeh balls. The result reads as depth and optics rather than image processing, which is why it is the blur to reach for when the goal is a photographic look instead of simple softness.

Try it in the editor

What it does

Blurs like a real camera lens, with out-of-focus highlights blooming into soft bokeh shapes.

The physics is simple and unforgiving. A point of light away from the focal plane does not land on the sensor as a point; it lands as a scaled projection of the aperture itself, the circle of confusion. Every out-of-focus pixel is literally a little picture of the hole the light came through, which is why stopped-down lenses render highlights as polygons with one side per aperture blade, and wide-open lenses render them as discs. Bokeh, from the Japanese boke, is the word photographers use for the aesthetic quality of that rendering.

This is also why ordinary blurs fail at the job. Averaging pixels evenly, in the gamma-encoded image, drags bright points down into the surrounding tones, so a streetlight that should bloom into a brilliant ball fades into gray mush. Real defocus is additive light: the highlight dominates every aperture that overlaps it. A credible lens blur therefore has to work in linear light and let bright samples outweigh dim ones, so highlights survive the blur as crisp-edged shapes instead of dissolving into it.

The character lives in the imperfections. Some lenses render bokeh balls with a soft, creamy center; others, famously the vintage Trioplan, put the energy in a bright rim, the soap-bubble look. Off-axis, mechanical vignetting squashes the discs into lens shapes that arc around the frame center, the cat’s eye signature of fast glass. Blade count, blade rotation, and how rounded the polygon is all leave fingerprints. Get those details right and the blur stops looking like a filter and starts looking like a lens.

Signature looks

City at night

Streetlights and signage dissolving into crisp-edged bokeh balls that carry the aperture’s shape. The defining test of a lens blur.

Creamy portrait

A soft-centered defocus that melts the background into smooth gradients and lets the subject float. The classic fast-prime rendering.

Soap bubble

Bright-rimmed, hollow-looking highlight discs, the vintage-lens signature that turns a background of lights into floating rings.

Try it on your own footage

This effect runs live in the Modulate editor, with layers, effect chains, masks, and keyframes. Free, no signup, nothing to install.

Common questions

What is the difference between lens blur and gaussian blur?

A gaussian blur averages neighboring pixels under a smooth bell curve, so everything softens uniformly and bright points dim into their surroundings. A lens blur spreads each point into the shape of a camera aperture and preserves the dominance of bright light, so highlights bloom into defined discs or polygons while the rest defocuses around them. Gaussian is softness; lens blur is optics.

What is bokeh?

Bokeh is the aesthetic character of the out-of-focus areas of a photograph, from the Japanese boke, meaning blur or haze. It is not the amount of blur but its quality: the shape of the highlight balls, whether their edges are smooth or bright-rimmed, how gently focused areas fall off into defocus. Photographers argue about good and bad bokeh the way audiophiles argue about speakers, and the argument is entirely about these signatures.

Why are bokeh balls sometimes hexagons?

Because the aperture is not a perfect circle. It is an iris built from overlapping blades, and when the lens is stopped down the opening becomes a polygon with one side per blade. Every out-of-focus highlight is a projection of that opening, so six blades give hexagonal bokeh, and rounded blade edges pull the shape back toward a circle. Older lenses with few straight blades produce the most obviously geometric balls.

What is cat’s eye bokeh?

Toward the corners of the frame, the lens barrel itself starts clipping the light path, an effect called mechanical vignetting. The clipped aperture renders as a lens or cat-eye shape rather than a full disc, squashed along the direction pointing at the frame center, so the balls appear to arc around the middle of the image. It is technically a flaw, and photographers pay for glass that has it, because it signals real optics.

Can you add lens blur to video?

Yes. The defocus is computed for every frame, so moving highlights bloom and travel as coherent bokeh shapes rather than flickering. In Modulate the Lens Blur effect runs live on images and video in the browser, and pairs naturally with grain and a vignette when the goal is a filmed look.

Related effects