Follow these steps to integrate volumetric fog into your URP project:
- Renderer Setup: Add the
volumetric fog renderer feature to your URP Renderer asset. - Post-Processing: Enable post-processing on both your Camera and your URP Renderer.
- Volume Configuration:
- Add a Volume to your scene.
- Add the override:
Custom -> Volumetric Fog. - Check the Enabled checkbox (it is disabled by default).
- Enable Enable Main Light Contribution and Enable Additional Lights Contribution as needed.
- Light Contribution: For spot lights and point lights to contribute to the fog, add the
VolumetricAdditionalLight component to those specific lights.
Note: If fog is not visible, try increasing light intensity or adjusting the volume parameters.