Hazel

Clouds

Volumetric clouds, raymarched through a spherical deck that follows the camera. A tileable noise map sets where clouds form, a 3D noise volume erodes their edges, a height profile gives them flat bases and billowing tops, and a second march toward the sun gives every sample its own shadow.

The deck reads the scene's atmosphere, so it relights with the sky and turns warm as the sun goes down. It drifts with the world wind unless told not to.

Adding clouds

  • A World Environment (from + Add Entity, or the New Environment starter) comes with clouds already on it.
  • On any other entity, Add Component > Clouds in the Inspector.

Only the first enabled Clouds component in the scene draws. The toggle in the section header switches the deck off without losing its settings.

The Low graphics quality tier switches clouds off entirely: the two per-pixel marches are the largest fixed raster cost on a weak GPU. If the sky is empty and the Clouds header shows an amber warning, that is the tier, not a fault (Settings > Project > Rendering). Below High, the march takes fewer steps.

The clouds follow the camera's exposure (EV100 in its Camera section) the same way the sky does, so changing the exposure brightens or dims both together. Their colours are tuned for a 40,000 lux sun at EV100 9.7, and they also follow the sun's illuminance, so a brighter sun lights them more.

Reflections and sky light

The deck is also drawn into the camera's environment map, the picture of the sky that reflections and sky lighting read. Shiny surfaces reflect the clouds, and an overcast sky lights the scene less than a clear one. With Solari on, its traced reflections and bounced light see the clouds the same way.

With Solari on, that copy is refreshed one cube face per frame, so it trails the sky by a few frames, which reflections and soft sky light never show. With Solari off it is rewritten whole every frame, and the filtered sky lighting made from it follows the overall cloud cover: it is refreshed when the sky changes, not as each cloud drifts.

Clouds do not cast shadows on the ground.

The controls

The first three are on the card itself; the rest are in folded groups, named in the first column. Atmosphere Lighting is a group whose switch is in its own row.

GroupFieldWhat it does
Coverage0 is a clear sky, 1 is solid overcast.
DensityHow opaque the cloud material is.
ScaleSize of the formations: lower means larger, broader systems.
DetailDetail Scale, Detail StrengthHow fine the eroding detail is, and how much of the outline it eats.
Edge SoftnessLow gives crisp, cauliflower edges; high gives soft haze.
Base SoftnessHow far up from the base the density fades in.
DeckBottom Height, Top HeightAltitude of the deck, in metres.
Planet RadiusHow sharply the deck curves toward the horizon. Earth's radius for a realistic sky, smaller for a storybook one.
WindWind Speed, Wind DirectionDrift of the deck, used when it does not follow the world wind. Cloud features are kilometres across, so this is weather-system fast.
Morph SpeedHow fast the shapes change as they drift. 0 freezes them.
LightingColor, BrightnessTint and level of the sunlit cloud, relative to the scene's sun.
Ambient Color, Shadow Color, AmbientSkylight on the top and the underside of the deck. Keep the shadow colour saturated: a grey sky under cloud is almost always a hue problem, not a brightness one.
AbsorptionHow hard the contrast between the sunlit and shadowed sides is.
Forward Scattering, Backward Scattering, Scattering BlendThe silver lining toward the sun, and the glow of clouds seen against it.
Powder EffectDarkens thin sunlit edges, which otherwise look like cut paper.
Atmosphere Lighting(the switch)Light the deck from the scene's atmosphere. With it on, every colour above is a noon value that the sky's state modulates.
Horizon Color, AtmosphereThe haze distant cloud fades into, and how strongly.
QualityRaymarch Steps, Shadow StepsSamples per view ray and per shadow ray. The main cost controls.

In exported games

Clouds are an engine crate, renzora_clouds, behind the runtime's clouds feature. A game export keeps them when a scene uses clouds and leaves them out otherwise; the Clouds toggle in the export's Sky section overrides that.