Skip to main content
Version: Next (dev)

Weather Volumes

The Time Of Day component sets the weather for the whole world. A Weather Volume component (plWeatherVolumeComponent, category Effects) changes it in one place:

  • Weather Override mode blends a Weather Profile asset over the world's weather while the camera is inside the volume: a blizzard on a mountain top, mist in a valley, heavier rain over a harbour.
  • Shelter mode marks an interior, cave, overhang or glass canopy. Rain and snow are culled inside, and the volume is stamped into the GPU precipitation occlusion map, so the space stays dry even when the roof is thin or has open gaps.

Setting up​

  1. Create a game object and add a Weather Volume component.
  2. Choose Mode and Shape, and size the volume with Extents (box) or Radius (sphere). The object's scale also scales the volume.
  3. For Weather Override: create a Weather Profile asset in the Asset Browser with New > Weather Profile, set its values, and assign it to WeatherProfile.
  4. For Shelter: fit the box around the interior. Raise ShelterCeilingOffset if the stamped ceiling should sit above the volume's top.

Component properties​

PropertyDefaultDescription
ModeWeather OverrideWeather Override blends the profile in; Shelter keeps precipitation out.
ShapeBoxBox or Sphere.
Extents10 × 10 × 6 mSize of the box.
Radius8 mRadius of the sphere.
BlendDistance3 mDistance outside the shape over which the effect fades out smoothly. 0 is a hard edge.
Priority0Where overrides overlap, higher priorities are applied last, on top of lower ones.
Weight1Strength of the volume, 0 to 1.
WeatherProfilenoneThe Weather Profile asset to blend in (Weather Override mode).
ShelterCeilingOffset0 mAdded to the top of the volume where it is stamped into the precipitation occlusion map (Shelter mode).

Weather Profile asset​

A Weather Profile (.plWeatherProfileAsset, category Effects) is a set of weather values in six groups:

GroupWhat it sets
RainIntensity, particle density, fall speed, drop size, streak length, tint, wind influence, splashes and mist.
SnowIntensity, particle density, fall speed, flake size, flutter strength and frequency, tint, wind influence and spindrift.
Surface WetnessWetness, albedo darkening, wet and puddle roughness, slope power, puddle threshold, ripple strength and scale, breakup scale and strength.
Surface SnowAccumulation, slope threshold, sparkle, tiling, breakup, roughness, albedo and the drip width under shelter.
Camera LensLens rain intensity, splash scale and distortion.
AtmosphereCloud coverage multiplier and bias, precipitation multiplier and a fog boost for low visibility.

The Profile group lets one profile inherit from another: set BaseProfile, and switch on only the groups this profile replaces (OverrideRain, OverrideSnow, OverrideSurfaceWetness, OverrideSurfaceSnow, OverrideLens, OverrideAtmosphere). Without a BaseProfile the switches are ignored and every group applies.

Weather profiles only drive Weather Volumes (and old scenes that still use the deprecated Weather component, see Migrating from the Weather component). The world's own weather comes from the Environment's timeline and overrides.

Troubleshooting​

ProblemCause and fix
The override has no effectThe volume is evaluated at the camera: move the camera inside it. Check Weight and that WeatherProfile is set.
It still rains inside a shelterThe volume does not cover the whole interior, or its top is below the roof. Enlarge it or raise ShelterCeilingOffset.
Overlapping volumes give the wrong weatherSet Priority so the volume that should win has the higher value.

See also​