LensDistortion
Split content into shifting chromatic layers with barrel or pincushion lens warp. Powered by Paper Shaders.
Props
center
The center point of the lens effect — the focus zone, lens warp, circle crop and swirl all pivot around it
- Type
- {x: number, y: number}
- Default
- {"x":0.5,"y":0.5}
spread
Strength of the color split; how far the color layers are pushed apart (0 is off)
- Type
- number
- Default
- 0.6
angle
Direction of the spread in degrees
- Type
- number
- Default
- 0
perspective
Shapes the spread direction from a straight line (0) to a radial burst out from the centre (1)
- Type
- number
- Default
- 0.1
bias
Shifts the colors toward one end of the spread; 0 spaces them evenly
- Type
- number
- Default
- 1
count
Number of sampled color layers along the spread; higher is smoother and costlier
- Type
- number
- Default
- 35
dispersion
Overall amount of color dispersion; 1 gives each layer its own color from the spectrum, 0 keeps the original color
- Type
- number
- Default
- 1
dispersionShift
Balance of the dispersion between a soft circular zone at the centre and the rest; -1 keeps it in the centre only, 1 at the edges only
- Type
- number
- Default
- 0
dispersionColor
Rotates the dispersion colors around the hue wheel, 0 to 1 for a full turn
- Type
- number
- Default
- 0.6
focusCenter
Reduces the spread in a circular zone at the centre; 0 keeps it full to the centre
- Type
- number
- Default
- 0.8
focusEdges
Reduces the spread toward the edges; 1 restores the original image there
- Type
- number
- Default
- 1
lensBulge
Radial lens warp; positive bulges out like a fisheye, negative pinches in like a pincushion
- Type
- number
- Default
- 0
lensCircle
Squeezes pixels outside the inscribed circle inward so the outline becomes a circle
- Type
- number
- Default
- 0
swirl
Rotates the color layers around the centre by an angle growing along the spread; 0 is off
- Type
- number
- Default
- 0.35
noise
Scatters the spread direction with noise; 0 is off
- Type
- number
- Default
- 0
noiseFrequency
Frequency of the direction noise; higher is finer (no effect with noise at 0)
- Type
- number
- Default
- 0.25
noiseOffset
Offsets the noise pattern for a different seed (no effect with noise at 0)
- Type
- number
- Default
- 0
grainMixer
Scatters the spread with grain noise, breaking up the edges of the color layers
- Type
- number
- Default
- 0
grainOverlay
Post-processing black/white grain overlay
- Type
- number
- Default
- 0