Setup

beginner concepts

Volumetric Fog & Mist 2 (URP) · Core Concepts

Setup & Configuration

Complete these steps to configure your URP project for Volumetric Fog & Mist 2.

Step 1 - Install Universal Render Pipeline

Open Window > Package Manager, find Universal RP and click Install (version 14+ recommended for Unity 2022.3+).

Step 2 - Assign the URP Asset

Go to Project Settings > Graphics and assign a Universal Render Pipeline Asset. You can use the asset included in the demo folder (Volumetric Fog 2/Demo/URP Pipeline Settings).

URP Asset assignment in Graphics settings

Step 3 - Enable Depth Texture

Double-click the URP Asset to open its Inspector. Enable Depth Texture. Enabling MSAA is also recommended.

URP Asset with Depth Texture enabled

Check both Project Settings > Graphics and Project Settings > Quality. Each quality level can reference a different URP asset - enable Depth Texture in all of them.

Step 4 - Verify Renderer Settings

SettingLocationRequired Value
Depth TextureURP AssetEnabled
Depth Texture ModeURP AssetAfter Opaques or Depth PrePass
Transparent Receive ShadowsURP Renderer DataEnabled (for fog shadow reception)

Optional - Render Features

For advanced transparency support (depth pre-pass, depth peeling), add these render features to your URP Renderer Data asset:

  1. Open the Forward Renderer asset (double-click from the URP Asset).
  2. Click Add Renderer Feature and add DepthRenderPrePassFeature.
  3. Optionally add the Volumetric Fog 2 Render Feature, required by Downscaling, Blur, Scattering and Depth Peeling.

Adding DepthRenderPrePassFeature to URP Renderer

The Volumetric Fog Manager can also do this for you (31.4.5 or later). When an option needs one of these features and the renderer does not have it, the manager shows a warning with an Add To Renderer button, which adds the feature to the default renderer of the active Universal Render Pipeline asset. When a feature is no longer needed, the warning shows a Remove From Renderer button instead, which removes it from the renderers of that asset.

Video Setup Guide

Was this page helpful?