Skip to main content
Version: Next (dev)

Environment Asset

An Environment asset (.plEnvironmentAsset, category Rendering) holds everything the Time Of Day component plays back:

  • the location and date, and the length of a day;
  • a 24-hour timeline with one track per driven property, grouped by system;
  • named weather overrides that scripts blend in over the timeline;
  • switches for the systems it drives;
  • the weather's constants: textures and render settings that do not change over the day.

The engine ships Data/Base/Environment/Temperate.plEnvironmentAsset: a temperate day with a rain shower from 16:45 to 19:15 and a snow flurry from 01:30 to 04:00. Copy it as a starting point, or create a new one in the Asset Browser with New > Environment.

The Environment window​

Double-click the asset to open it. The window shows the day as a timeline: one track per property against a 24-hour ruler, in one category per system: Sun, Moon, Exposure, Sky Light, Sky Atmosphere, Fog, Volumetric Fog, Volumetric Clouds, Wind, Rain and Snow. Along the top run the sky's colour over the day and the sunrise and sunset for the Environment's latitude and date.

Environment window for the Temperate asset: the Day timeline with Sun, Exposure, Sky Light, Volumetric Fog, Volumetric Clouds, Wind, Rain and Snow tracks, the key inspector, and the Settings panel with Location, Weather Overrides and Rain groups

  • Click a track to edit its curve in the side panel. Each curve runs from 0 to 24 hours on the X axis.
  • The playhead and the scene toolbar's Time of Day slider share the previewed time. With Preview in scene on, the open scene follows the playhead.
  • To change the colour of a key on a colour track, select the key and click Pick colour in the side panel, or double-click the key. The scene previews the colour live; OK keeps it as one undo step and Cancel restores it.
  • The Overrides tab lists the weather overrides and previews any of them in the scene.

Two panels sit beside the timeline:

  • Settings holds what the timeline does not show: the location and date, the weather overrides and ReturnTime, the system switches, and the asset's status.
  • Constants holds the weather's textures and render settings (see Constants).

Edits update the running editor scene at once.

Location​

PropertyDefaultDescription
Latitude, Longitude51.5°, 0°Location for the sun and the moon.
UtcOffset0 hHours added to UTC for local time, −14 to 14.
NorthOffset0°Rotation from the world's +X axis to north.
Year, Month, Day2026-06-21The date.
DayLength24 minReal minutes per in-game day.

Timeline tracks​

Each track drives one property. There are two kinds:

  • Scale tracks multiply or offset the value the scene authored, so one Environment works in many scenes. Without keys they keep their neutral value.
  • Property tracks set the property to the track's value, but only while the track has keys. An empty property track leaves the scene's value alone, and the authored value comes back when the keys are removed.
CategoryScale tracks (neutral value)Property tracks (first key, range)
SunIntensity (×1)Colour Temperature (6550 K, 1500 to 15000; switches the light to its colour temperature), Volumetric Intensity (1, 0 to 10)
MoonIntensity (×1)Colour Temperature (4100 K), Volumetric Intensity (1)
ExposureCompensation (0 EV, added to the Post Process Volume's)
Sky LightDiffuse Intensity (×1), Specular Intensity (×1)Diffuse Saturation (1, 0 to 2)
Sky AtmosphereStars (×1), Night Sky Luminance (×1)Mie Anisotropy (0.8), Mie Scale Height (1.2 km), Rayleigh Scale Height (8 km), Ground Albedo (0.3), Aerial Perspective Distance (100 km), Moon Disk Luminance (2500 nits)
FogDensity (×1)Height Falloff (10), Start Distance (0 m), Albedo (colour)
Volumetric FogDensity (×1)Anisotropy (0.3, −0.99 to 0.99), Height Falloff (0.1), Start Distance (0 m), Sky Ambient (1), Albedo (colour), Ambient Light (colour)
Volumetric CloudsCoverage (+0: about 0.4 gives a broken overcast, 0.7 fills the sky), Type (+0; positive values build towering clouds)Density Scale (1), Extinction (0.04), Wind Speed (10 m/s), Evolution Speed (0.1), Phase G (0.6), Multi-Scatter Intensity (1), Ambient Strength (1), Silver Lining Intensity (0.5), Cirrus Density (0.5), Cirrus Coverage Bias (0), Shadow Strength (1), Precipitation Scale (1), Scatter Colour (colour)
WindStrength (×1, on the Simple Wind component)

The Volumetric Clouds tracks drive the Volumetric Clouds component; its properties table explains each one.

Specular Intensity used to share the Diffuse Intensity track. An Environment saved before the split, or one whose specular track has no keys, gives the specular the diffuse track's keys, so its lighting does not change.

Rain​

Rain is the amount of rain, 0 = off. It scales Rain Intensity and wets surfaces. Every other track sets one property of the GPU rain and keeps its default without keys:

GroupTracks
Falling rainRain Intensity (1), Particle Density (1), Drop Size (0.015), Fall Speed (14), Streak Length (0.45), Wind Influence (1), Tint (colour), Tint Opacity (0.55), Splashes (0.7), Mist (0.35), Sky Darkening (0: light lost under full rain, 0 to 1)
Wet surfacesSurface Darkening (0.35), Wet Roughness (0.24), Puddle Roughness (0.04), Puddle Threshold (0.45), Puddle Slope Power (3), Wet Rate (2), Dry Rate (0.5), Ripple Strength (0.045), Ripple Scale (18), Wetness Breakup Scale (0.08), Wetness Breakup Strength (0.45), Drip Width (0.45: the wet edge under shelter)
Camera lensLens Rain (0), Lens Splash Scale (1), Lens Distortion (0.015)

Wet Rate and Dry Rate are the wetness gained per in-game hour at full rain and lost per hour in full sun.

Snow​

Snow is the amount of snow, 0 = off. It scales Snow Intensity and builds snow cover. The other tracks:

GroupTracks
Falling snowSnow Intensity (1), Particle Density (1), Flake Size (0.032), Fall Speed (1.8), Flutter Strength (0.85), Flutter Frequency (1.4), Wind Influence (1.35), Spindrift (0.35), Tint (colour), Tint Opacity (0.85), Sky Darkening (0)
Snow coverAccumulation Rate (0.6), Melt Rate (0.15), Slope Threshold (0.35), Cover Albedo (colour), Cover Roughness (0.65), Sparkle (0.55), Surface Tiling (1), Cover Breakup (0.45), Cover Breakup Tiling (0.08)

Accumulation Rate and Melt Rate are snow cover per in-game hour. The current wetness and snow cover are worked out from the amounts and the rate tracks.

Weather overrides​

The Weather Overrides group in the Settings panel lists the overrides. Scripts blend them in with SetWeather, and the Environment.Weather cvar and the Scene > Lighting > Weather Preview menu switch to them by name. ReturnTime (default 60 s) is how long clearing an override takes.

PropertyClear valueDescription
NameUsed by scripts, the cvar and the Weather Preview menu.
CloudCoverage, CloudType0, 0Replace the timeline's cloud tracks, −1 to 1.
FogDensity×1Replaces the timeline's fog track; volumetric fog scales with it.
WindSpeed×1Replaces the timeline's wind track.
SunIntensity×1Replaces the timeline's sun track; also scales the moon.
ExposureBias0 EVAdded to the timeline's exposure compensation, since the light under heavy cloud drops.
Rain, Snow0, 0Replace the timeline's rain and snow amounts.
Rain and Snow groupstrack defaultsEvery rain and snow property of the categories above, replacing the timeline's over the precipitation window.
TransitionTime60 sDuration of a transition into this override when the script gives none.
CloudWindow, WindWindow, SunWindow, FogWindow, ExposureWindow, PrecipitationWindow0–0.6, 0–0.4, 0.3–0.6, 0.2–0.8, 0.3–0.65, 0.5–1Start and end (0 to 1) of each channel's part of a transition into this override.

A typical set is Overcast, Storm and Fog: an override only needs the values that differ from a clear day.

Overrides tab of the Temperate Environment window with the Storm override selected: its weather, rain and snow values with changed rows highlighted, the transition timing bars, and the Storm values in the Settings panel

Systems​

DriveSky, DriveExposure, DriveFog, DriveClouds, DriveWind and DrivePrecipitation (all on by default) choose what the Environment changes. A system that is off stays as the scene authored it and is not created.

Constants​

The weather settings that do not change over the day are in the window's Constants panel, in five groups. An empty texture or material uses the engine's weather art.

GroupProperties
RainRainStreakTexture, RainfallMaterial, RainStreakScale (55), RainStreakSpeed (1.8), RainStreakOpacity (0.45), the CPU rain's RainfallRingCount (3), RainfallInnerRadius (8 m), RainfallOuterRadius (32 m) and RainfallHeight (28 m), RainSplashTexture
SurfacesPuddleMask, RippleTexture, SurfaceSplashTexture, WetnessIntensity (a floor under the weather's wetness), SurfaceWeather (on)
SnowSnowflakeTexture, SnowDiffuseTexture, SnowNormalTexture, SnowORMTexture, SnowNoiseTexture
LensLensSplashTexture, LensWeather (on)
RenderingGPUPrecipitation (on; off falls back to CPU rain rings around the camera), WeatherMap, WeatherMapScale (0.00002), WeatherMapOffset

Troubleshooting​

ProblemCause and fix
A property track has no effectProperty tracks only apply while they have keys. Add a key.
The toolbar's day strip does not show the latest rain or snow editsThe strip is read when the toolbar is built. Reopen the scene to refresh it.
A system is not drivenIts Drive... switch is off in the Systems group, or (for volumetric fog and snow) the scene has no such component.

See also​