Setup
beginner conceptsVolumetric Fog & Mist 3 · Core Concepts
Requirements
- Unity 6 (6000.0) or later.
- Universal Render Pipeline (URP).
- Render Graph on. In a project upgraded from an older Unity version, open Project Settings > Graphics and turn off Compatibility Mode (Render Graph Disabled). With Compatibility Mode on, the fog is not drawn.
Render Feature
The fog is drawn by the Fluid Fog Render Feature. It must be in every URP Renderer asset that renders your cameras, for example one per quality level.
The easy way: select a fog volume. If a renderer of the current pipeline asset has no Fluid Fog Render Feature, the inspector shows a warning and the button Add Fluid Fog Render Feature, which adds it to the renderers that miss it.
To add it by hand, select the Universal Renderer asset, click Add Renderer Feature and choose Fluid Fog.
The Render Feature has no settings. The rendering options are in the Fog Manager. See Fog Manager & Performance.
URP Options Used by Some Features
| Feature | URP setting |
|---|---|
| Native lights | Rendering Path set to Forward+ or Deferred+ in the Universal Renderer asset. |
| Rendering Layer Mask of native lights | Light Layers option of the URP asset. |
| Cast Shadows | Light Cookies option of the URP asset. |
| Scene shadows in the fog | Main light shadows on in the URP asset and on the sun light. |
Cameras
- The fog is drawn by the base camera. Overlay cameras do not draw it again.
- Reflection cameras and preview cameras do not draw the fog.
- The fog is also visible in the Scene view.
VR
The fog is drawn for both eyes with Single Pass Instanced rendering. In this mode the Transparent Support option of the Fog Manager stays off.
Suggest an improvement
Help us improve this documentation page.