Effects node
Lens Distortion
Bulges or pinches the image like a camera lens and fringes the edges with color, controlled by Barrel curvature and Chromatic Aberration amount.

What it does
Lens Distortion is an image effect: it changes the picture that flows through it. It takes picture in and gives picture out.
Inputs and outputs
Inputs
- picture input
Outputs
- picture out
Controls
Every control with a range can be driven by a modulator, a note, an audio level or a sketch.
| Control | Range or options | Default |
|---|---|---|
| barrel | -1.5 to 1.5 | 0.300000012 |
| chromatic | 0 to 5 | 0.600000024 |
| zoom | 0.5 to 2 | 1 |
Example patch
This patch wires Lens Distortion to what it needs and shows the result. Download it, then use File, Open in Infinite, or read it here: it is plain text.
infinite-patch 1
rev 2
# Lens Distortion: a starting patch for the Lens Distortion node
node 1 Effects lensdistortion
id node
pos 520 300
end
node 2 Source Ramp
id in0
pos 0 300
end
node 3 Utility Output
id out
pos 1080 300
end
cable node 0 in0
cable out 0 node