DocsGRADEReference

Lens Dirt

2 min read

On this page

Dirt and smudges on the lens revealed by bright lights (procedural or your own texture).

Studio categoryCinema
Pipeline stageScene (scene-linear HDR, before the tonemapper)
Default position13 in its stage, shares a pass with the SceneLight group
Works inLive views and Image mode
C++ / BlueprintFGradeLayer::Effects.LensDirt (FGradeLensDirt)

Manual: Lens Dirt. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).

Parameters

Lens dirt that does not need Bloom: bright areas (own threshold, scattered) reveal a dirt texture and blur the image under it. Procedural dirt (smudges, bokeh dust) when no texture is set.

ParameterBlueprint pathValuesDefaultDescription
EnabledEffects.LensDirt.Enabledon/offoffTurns this on or off (the other values are kept while it is off).
IntensityEffects.LensDirt.Intensity0..10040
Screen BlendEffects.LensDirt.ScreenBlendon/offonScreen blend (true) or additive (false).
TintEffects.LensDirt.Tint.R/G/B/Acolourwhite
DomainEGradeEffectDomainScene Linear (before tonemapper)

Light

ParameterBlueprint pathValuesDefaultDescription
ThresholdEffects.LensDirt.Threshold-4..81.5Brightness where the dirt shows (same units as Halation.Threshold).
Luminance ExponentEffects.LensDirt.LuminanceExponent0.5..41Contrast of the extracted light, 0.5..4.
Luminance RangeEffects.LensDirt.LuminanceRange1..82Upper clamp of the extracted light, 1..8.
ScatteringEffects.LensDirt.Scattering0..10060How far the dirt shows around light sources (blur of the light mask), 0..100.
Exposure RecoveryEffects.LensDirt.ExposureRecovery0..10.5Keeps the dirt visible when auto exposure darkens the scene, 0..1 (uses the engine exposure).

Smudge

ParameterBlueprint pathValuesDefaultDescription
BlurrinessEffects.LensDirt.Blurriness0..10030Blur of the image under the dirt (smudge), 0..100.
Blur RadiusEffects.LensDirt.BlurRadius0..10040
Blur PresenceEffects.LensDirt.BlurPresence0..10.21 = smudge visible everywhere, 0 = only where it is bright.

Composite

ParameterBlueprint pathValuesDefaultDescription
Scene Color PickupEffects.LensDirt.SceneColorPickup0..10.6The dirt picks up the colour of the light behind it, 0..1.

Texture

ParameterBlueprint pathValuesDefaultDescription
TexturetexturenoneOptional dirt texture (RGB dirt; alpha = smudge mask if present). Procedural when empty.
Texture ScaleEffects.LensDirt.TextureScale.X/Y2D vector (X, Y)(1, 1)
Texture OffsetEffects.LensDirt.TextureOffset.X/Y2D vector (X, Y)(0, 0)
SeedEffects.LensDirt.Seedinteger7Procedural dirt variation.

Enumerations

Effect Domain (EGradeEffectDomain)

Where a light effect runs: on scene-linear HDR colour before the tonemapper (live views; physically correct highlights) or on display colour after it (also in Image mode). Scene Linear falls back to Display in Image mode.

ValueMeaning
Scene Linear (before tonemapper)-
Display (after tonemapper)-

Generated from the GRADE C++ headers. Back to the reference index.