Cloudscape Docs
View all packages

Clouds and look

Atmosphere, fog and light shafts

Add fog and light shafts that share the cloud layer's lighting.

Cloudscape 26.11.0Unity 6000.0+Built-in · URP · HDRP

Add Cloud Atmosphere and assign a Cloud Layer. It is drawn with that layer's cloud composite in URP, Built-in and HDRP, so fog, clouds and light shafts always use the same lighting.

  • Height fog: Fog Density at Fog Height, thinning with height over Fog Falloff. Maximum Opacity caps it. With Match Cloud Lighting on, the fog colour comes from the profile's ambient colour and the sun, so fog and clouds match through the day; otherwise Fog Color is used. The fog brightens toward the sun.
  • Aerial perspective: distant clouds fade toward the fog colour by distance, even with fog density at zero.
  • Light shafts: God Rays draws sun shafts where clouds break the light. Shafts need the sun on screen and fade with distance from it. God Ray Samples trades quality for cost.
  • Cloud shadows: Cloud Shadows darkens the sunlit glow of the fog under clouds, so fog below an overcast deck turns grey while fog under clear sky stays bright. A small map of sunlight through the clouds (Shadow Resolution, default 128) covers Shadow Size meters around the Shadow Camera (the main camera when empty) and refreshes every Shadow Update Interval seconds. Fog beyond the map is unshadowed. Set Cloud Shadows to zero to turn the map off. The fog uses its own cloud shadow map. Screen-space ground shadows darken eligible opaque receivers. Directional cloud cookies also affect materials that receive the main light and sample its cookie. See Water and Fog for the tested URP reflection and height fog setup.
  • Point and spot lights: lights assigned to the Cloud Layer's Local Light A/B also glow in the fog.

Add Cloud Fog Volume to a GameObject to add fog inside its box (scaled by the object's scale), or tick Fog Free to remove height fog inside it, for example inside a building. Up to four volumes are used.

With two cloud layers, only the first layer's far pass draws the atmosphere. Fog applies to opaque geometry through the scene depth; transparent objects drawn later are not fogged. The fog is an approximation for outdoor scenes and does not replace your pipeline's volumetric fog.

Keeping the scene in step

Cloud Environment Sync (Built-in and URP) sets trilight ambient colours and the matching ambient probe, which lit objects read, from the cloud lighting and coverage (overcast skies get greyer and flatter), sets the scene fog colour to the atmosphere colour, and re-renders the listed realtime reflection probes when the sun moves or coverage changes past the thresholds. Disabling it restores the values it wrote unless something else changed them. In HDRP use the Volume sky and fog overrides instead.

Baked sky for low-end devices

Cloud Sky Bake holds a cubemap of the sky and clouds. Call Bake(camera, reflectionCapture) during play with a Cloud Reflection Capture for your pipeline, or assign a cubemap baked earlier. FadeTo(1, seconds) crossfades the sky to the baked cubemap and FadeTo(0, seconds) back to the live clouds. Once fully baked you can disable the Cloud Layer to save its cost; the composite then no longer runs, so set a Skybox/Cubemap material with the same cubemap for that mode.

Still stuck?

Bring the sky with you.

Include the Cloudscape version, Unity and render-pipeline versions, operating system, graphics API, the Cloud Layer's camera setup inspection, relevant logs, and a minimal reproduction.

Email supportJoin Discord

Cloudscape 26.11.0

Search documentation