Weather and wind

Place a Weather actor to drive one wind and one rain state for foliage, grass, clouds and rain on surfaces, with puddles, cover and rain audio.

Last updated Dec 4, 2026Version 1.1.0

A Weather actor sets the wind and the rain for the whole level. Foliage, grass and clouds bend to the same wind, and rain wets the surfaces it reaches, fills puddles and falls around cover. This page covers the actor, what reads its state, the rain rules, vegetation deflection, the console variables and the limits.

Place a Weather actor

Add one Weather actor to the level. It has no visible shape. Its properties set the level's weather:

PropertyRangeDefaultMeaning
Wind Speed0 to 603Mean wind speed in metres per second, measured at foliage height
Wind Direction0 to 3600The way the air moves, in degrees. 0 blows toward +X and 90 toward +Z
Gustiness0 to 10.40 is steady air. Higher values send strong gusts across the field
Turbulence0 to 10.3Fine, uneven motion on top of the gusts
Rain Intensity0 to 10How hard it rains, from drizzle to downpour. 0 is dry
Puddle Amount0 to 110 gives no puddles. 1 fills the basins to their authored level
Wetting Seconds1 to 360045Seconds of steady rain for a dry surface to reach about 63 percent wet
Drying Seconds1 to 7200240The same measure for drying once the rain stops
Rain Audio Volume0 to 10.7The loudness of the rain bed
Rain Audio Clipaudio assetemptyA looping clip to play instead of the synthesized rain bed

Only the first enabled Weather actor counts. With none placed, the level keeps the older look: the analytic sway from the r.Wind.* variables, no rain and dry surfaces. Removing the actor dries the ground at once.

Rain Intensity is the input you change over time. The surfaces lag behind it, as described below.

Wind

The wind is one field over the whole level. Its gusts travel across the map, so neighbouring plants move out of step and the motion reads as air rather than as a repeated sway. The field is a texture that follows the camera. Its cells are 2 m by default (r.Wind.Field.CellSize).

Three things read the field:

  • Foliage drawn with the foliage wind. This covers the grass and foliage the engine places, and any material with the foliage-wind flag set.
  • GPU grass, which bends in the same field and springs back when pushed (see Vegetation deflection).
  • Clouds. Raymarched and 2.5D clouds drift with the Weather wind at four times its speed, because the sky layer moves faster than the air at foliage height. If a Volumetric Cloud actor is placed, its own wind is used instead and the Weather wind does not reach the clouds. Raymarched clouds also write their own motion vectors, so temporal upscalers follow them. See Sky, fog and reflections.

Particles do not read the wind yet. Cloth and hair do not either. The wind reaches only the renderer's foliage, grass and clouds.

Rain on surfaces

Rain changes surfaces in two steps. The rain falling now is the intensity. The surfaces answer it with a lag, which is the wetness.

  • Wetness rises toward the intensity over the wetting time and falls back over the drying time. Porous surfaces darken. Smooth surfaces take a thin water film. At the default wetting time a surface is half wet after about 31 seconds of steady full rain, because the approach is exponential.
  • Puddles start only after the surface is more than half wet. They then fill over about 2 minutes and drain over about 10 minutes, so a puddle outlasts the rain. Puddles show drop ripples while it rains. Puddle Amount scales the water level.

The lag runs in the editor as well as in the game, so the ground wets while you place rain.

Cover

The renderer builds a top-down height map of the static geometry around the camera. A surface with something solid overhead, such as a roof, a bridge or a dense canopy, is sheltered. A sheltered surface stays dry, and falling streaks do not reach it.

What gives cover:

  • Static, opaque meshes drawn as individual objects, including alpha-tested cards such as leaves on a cut-out card.
  • Trees you place as ordinary mesh actors.

What does not give cover:

  • Painted foliage and the trees a Foliage component scatters. These are drawn in instance batches, and the cover map reads only individual meshes.
  • GPU grass and all other instanced foliage. Blades are never cover.
  • Terrain. The ground is drawn in its own patches and is not a roof.
  • Moving physics bodies, skinned characters, transparent materials and water.

The map covers 128 m around the camera at the default cell size of 0.5 m. Set r.Rain.Shelter.CellSize to change that.

Streaks

Falling streaks fill a box around the camera at high intensity, with up to 8000 streaks (r.Rain.Streaks.Count). They slant with the wind and stretch with the camera's own motion. Streaks stop at cover, so a roof keeps its drops out. They are drawn at the end of the particle stage of the frame.

Rain audio

The rain bed is a 2D sound that plays in the game while it rains. It is not played in the editor. Its level rises over about 2 seconds and falls over about 4 seconds, so a sudden downpour fades in.

  • Without a clip, the engine synthesizes the bed from filtered noise and sparse droplets. The engine ships no rain file, and the bed does not repeat audibly.
  • With a clip, the clip loops. If it cannot load, the engine logs a warning and uses the synthesized bed.
  • Under cover, the bed fades to 45 percent of its level and loses its highs, so it sounds as if heard from inside. The test is a physics ray straight up from just above the listener, 30 m long. Any collider overhead counts, so a roof must have collision to muffle the sound.

Vegetation deflection

Plants push aside when something stands in them. A character's capsule does this with no setup. For any other object, such as a prop, a creature or a vehicle body, add a Vegetation Interactor component to it. The component has two properties:

PropertyRangeDefaultMeaning
Radius0.05 to 10 m0.5The vertical cylinder that pushes plants out of its way
Height0.1 to 20 m1Plants taller than this are bent only at their base

Gameplay code can set the object's velocity each tick. The plants it brushes take that velocity, so they carry on in its direction after it passes. When the object leaves, the plants spring back and swing once past their rest position before they settle.

The deflection is a camera-centred grid of springs. It applies to GPU grass and to foliage drawn with the foliage wind.

Grass

GPU grass is set per terrain grass type with the GPU Scatter option. See the Landscape page. The grass is placed on the GPU around the camera each frame, so it needs no streaming and no instance cap to tune. It bends in the wind and deflects as described above.

Console variables

VariableDefaultEffect
r.Wind.Field11 drives foliage and grass from the wind field. 0 keeps the analytic r.Wind.* sway
r.Wind.Field.CellSize2Metres per cell of the wind texture
r.Wind.Strength, r.Wind.Speed, r.Wind.Gust, r.Wind.Flutter1, 1, 0.35, 0.15Shape the analytic sway, used with no Weather actor or with the field off
r.VolumetricClouds.WriteVelocity11 writes motion vectors for raymarched clouds. 0 leaves clouds smeared under temporal upscalers
r.Foliage.Deflection10 turns off the deflection field
r.Foliage.Deflection.Stiffness60How hard a pushed plant is pulled back, in 1/s². Higher snaps back faster
r.Foliage.Deflection.DampingRatio0.551 returns without swinging. Below 1 swings past rest and settles
r.Grass.Gpu11 draws GPU Scatter grass. 0 draws none of it
r.Grass.Gpu.DensityScale1Multiplies the density of every GPU grass layer
r.Grass.Gpu.MaxDistance0Caps every GPU grass layer's reach in metres. 0 uses each layer's own Max Distance
r.Rain.Surface10 keeps surfaces dry whatever the weather
r.Rain.Shelter10 treats everything as open to the sky, so rain reaches under roofs
r.Rain.Shelter.CellSize0.5Metres per cell of the cover map, from 0.1 to 4
r.Rain.Streaks10 hides the falling drops. Surfaces still get wet
r.Rain.Streaks.Count8000Streaks at full intensity. Lighter rain draws fewer

Limitations

  • Particles, cloth and hair do not read the wind. The wind drives the renderer's foliage, grass and clouds only.
  • Only the first enabled Weather actor counts. Two Weather actors do not blend.
  • One wind and one rain for the whole level. A Weather actor has no area, so a storm over part of a level is not possible yet.
  • Cover comes from individually drawn static meshes only. Instanced foliage, grass and terrain do not shelter.
  • Rain audio does not use the cover map. It asks the physics world, so cover without collision is not detected.
  • Rain audio plays only in the game. The editor shows wetness and puddles but makes no sound.

Engine sources

This page describes behavior implemented in these files of the engine repository, checked against commit 0e77abe6b.

  • Engine/Source/Gameplay/Game/Api/Game/AWeatherActor.h
  • Engine/Source/Gameplay/Game/Api/Game/MWeatherComponent.h
  • Engine/Source/Gameplay/Game/Api/Game/Components/WeatherComponent.h
  • Engine/Source/Gameplay/Game/Api/Game/Components/VegetationInteractorComponent.h
  • Engine/Source/Gameplay/Game/Api/Game/WeatherRainAudio.h
  • Engine/Source/Gameplay/Game/Api/Game/Components/TerrainComponent.h
  • Engine/Source/Render/Renderer/Api/Renderer/WeatherSettings.h
  • Engine/Source/Render/Renderer/Api/Renderer/WindField.h
  • Engine/Source/Render/Renderer/Api/Renderer/RainSurface.h
  • Engine/Source/Render/Renderer/Api/Renderer/GpuGrass.h

Page feedback

Was this page helpful?