These setup instructions are for the Universal Render Pipeline (URP).
Setup Instructions
Step 1: Install Universal Rendering Pipeline
Go to Windows -> Package Manager. Select Universal RP (7.5.0 or later preferably) and click “Install”.
Step 2: Assign the Universal Rendering Pipeline asset
Go to Project Settings -> Graphics and assign an Universal Rendering Pipeline asset. You can use the asset include in the demo folder (Volumetric Fog 2 /Demo /URP Pipeline Settings folder).
Step 3: Configure Universal Rendering Pipeline asset
Double click the Universal Rendering Pipeline asset to show its properties.
Then enable “Depth Texture”. Enabling MSAA is also recommended:
Important note!
Check both “Project Settings / Graphics” and “Project Settings / Quality” sections since you can define URP settings overrides in Quality levels. You need to enable Depth Texture option in all URP settings used in any Quality Level.
Also check:
that in the URP “Universal Renderer Data” asset the option “Transparent Receive Shadows” is enabled.
Now you can use Volumetric Fog & Mist 2!