Lens Dirt
Dirt and smudges on the lens revealed by bright lights (procedural or your own texture).
| Studio category | Cinema |
|---|---|
| Pipeline stage | Scene (scene-linear HDR, before the tonemapper) |
| Default position | 13 in its stage, shares a pass with the SceneLight group |
| Works in | Live views and Image mode |
| C++ / Blueprint | FGradeLayer::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.
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Enabled | Effects.LensDirt.Enabled | on/off | off | Turns this on or off (the other values are kept while it is off). |
| Intensity | Effects.LensDirt.Intensity | 0..100 | 40 | |
| Screen Blend | Effects.LensDirt.ScreenBlend | on/off | on | Screen blend (true) or additive (false). |
| Tint | Effects.LensDirt.Tint.R/G/B/A | colour | white | |
| Domain | EGradeEffectDomain | Scene Linear (before tonemapper) |
Light
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Threshold | Effects.LensDirt.Threshold | -4..8 | 1.5 | Brightness where the dirt shows (same units as Halation.Threshold). |
| Luminance Exponent | Effects.LensDirt.LuminanceExponent | 0.5..4 | 1 | Contrast of the extracted light, 0.5..4. |
| Luminance Range | Effects.LensDirt.LuminanceRange | 1..8 | 2 | Upper clamp of the extracted light, 1..8. |
| Scattering | Effects.LensDirt.Scattering | 0..100 | 60 | How far the dirt shows around light sources (blur of the light mask), 0..100. |
| Exposure Recovery | Effects.LensDirt.ExposureRecovery | 0..1 | 0.5 | Keeps the dirt visible when auto exposure darkens the scene, 0..1 (uses the engine exposure). |
Smudge
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Blurriness | Effects.LensDirt.Blurriness | 0..100 | 30 | Blur of the image under the dirt (smudge), 0..100. |
| Blur Radius | Effects.LensDirt.BlurRadius | 0..100 | 40 | |
| Blur Presence | Effects.LensDirt.BlurPresence | 0..1 | 0.2 | 1 = smudge visible everywhere, 0 = only where it is bright. |
Composite
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Scene Color Pickup | Effects.LensDirt.SceneColorPickup | 0..1 | 0.6 | The dirt picks up the colour of the light behind it, 0..1. |
Texture
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Texture | texture | none | Optional dirt texture (RGB dirt; alpha = smudge mask if present). Procedural when empty. | |
| Texture Scale | Effects.LensDirt.TextureScale.X/Y | 2D vector (X, Y) | (1, 1) | |
| Texture Offset | Effects.LensDirt.TextureOffset.X/Y | 2D vector (X, Y) | (0, 0) | |
| Seed | Effects.LensDirt.Seed | integer | 7 | Procedural 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.
| Value | Meaning |
|---|---|
| Scene Linear (before tonemapper) | - |
| Display (after tonemapper) | - |
Generated from the GRADE C++ headers. Back to the reference index.