DocsGRADEReference

Lens Rain

2 min read

On this page

Rain on the lens: drops land, merge and run leaving beads behind, with refraction, glints, defocus, condensation and wind (custom drop texture optional).

Studio categoryGames
Pipeline stagePost Colour (display colour, after the colour nodes)
Default position18 in its stage, shares a pass with the GameOverlays group
Works inLive views and Image mode
C++ / BlueprintFGradeLayer::Effects.LensRain (FGradeLensRain)

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

Parameters

Rain drops and streaks on the lens with refraction.

ParameterBlueprint pathValuesDefaultDescription
EnabledEffects.LensRain.Enabledon/offoffTurns the effect on.
AmountEffects.LensRain.Amount0..100, keyable50Mix of the effect with the original image, 0..100.
Drop SizeEffects.LensRain.DropSize0.25..41Drop size multiplier.
StreaksEffects.LensRain.Streaks0..10040Running streaks, 0..100.
RefractionEffects.LensRain.Refraction0..10060Refraction strength, 0..100.
FogEffects.LensRain.Fog0..10020Blur of the image seen through the wet lens, 0..100.
SpeedEffects.LensRain.Speed0..10040Animation speed, 0..100.
Drop TexturetexturenoneOptional drop image (grayscale: white = water, black = dry glass; tiling) for custom drop shapes; normals are derived from it.
CondensationEffects.LensRain.Condensation0..10025Fine condensation / mist covering the lens between drops, 0..100.
WindEffects.LensRain.Wind-60..600Wind direction of the running drops in degrees (0 = straight down).
SeedEffects.LensRain.Seedinteger5Pattern variation.
DensityEffects.LensRain.Density0..10050How many drops sit on the lens, 0..100.
ImpactsEffects.LensRain.Impacts0..10040New drops hitting the lens (appear with a small splash, merge and grow until they run), 0..100.
Trail BeadsEffects.LensRain.TrailBeads0..10050Running drops leave beads of tiny droplets behind them, 0..100.
HighlightsEffects.LensRain.Highlights0..10040Specular glints on the drops, 0..100.
DefocusEffects.LensRain.Defocus0..10020Drops are out of focus (soft, defocused lens water) .. crisp, 0..100 (0 = crisp).

Shape

ParameterBlueprint pathValuesDefaultDescription
StretchEffects.LensRain.Stretch0..100, keyable30Stretch the drops along the way they slide (teardrops, smeared streaks), 0..100.
DeformEffects.LensRain.Deform0..10040Irregular, wobbly drop outlines (flattened and merged drops instead of perfect circles), 0..100.
Size VariationEffects.LensRain.SizeVariation0..10050Spread of drop sizes (many tiny ones and a few large ones), 0..100.

Motion

ParameterBlueprint pathValuesDefaultDescription
Camera MotionEffects.LensRain.CameraMotion0..100, keyable50Drops react to the camera: turning pushes and smears them sideways, looking up / down stretches them, 0..100.
GravityEffects.LensRain.Gravity0..10050How readily big drops run down the lens, 0..100.
MergingEffects.LensRain.Merging0..10030Neighbouring drops merge into bigger ones that then start to slide, 0..100.
Slide AngleEffects.LensRain.SlideAngle-90..900Sliding direction on the lens in degrees (0 = straight down; Wind adds on top).

Look

ParameterBlueprint pathValuesDefaultDescription
Inverted RefractionEffects.LensRain.InvertedRefraction0..10060The image inside each drop is the flipped, shrunk scene, like a real drop acting as a lens, 0..100.
Edge DarkeningEffects.LensRain.EdgeDarkening0..10040Dark refraction edge around each drop, 0..100.

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