This repository is copied from Unity HDRP Volumetric Fog.
Note that this feature is working as a global fog volume while HDRP requires local volumes.
This package is available on URP Forward+ from 2022.3.0f1 (2022 LTS) version.
| 2022 LTS | 2023 | Unity 6 | |
|---|---|---|---|
| URP Compatibility | O | O | O |
| RenderGraph Implementation | X | X | O |
- Add 'FP Volumetric Fog' renderer feature to Renderer data (Make sure to use Forward+)
- Create 'Volumetric Config' via 'Create/UniversalVolumetric/VolumetricFogConfig'
- Link the config asset to the renderer feature
NOTE - If you use Unity 6 LTS and the rendering result is not as expected, change Shader Precision Model setting in Project Settings > Player > Other Settings > Shader Settings.
While this package assumes a global volume, you can put a local smoke volume to make a ground smoke effect for a specific area. Smoke volume component uses a box collider to determine its area. Due to performance, it supports 4 smoke volumes at maximum.
To add a smoke volume to your scene, create a new gameObject and add 'Smoke Volume' component to the gameObject. You might need to create your own noise texture to use, but I added a default noise texture which can be found at 'Runtime/Textures/' directory.
-
XR not supported
-
Additional Directional & Local(point & spot) lights are only available in Forward+
(In other words, only MainLight is working for Forward)
-
DiffuseGI does not contribute to lighting
-
Noise texture is not supported
-
The number of LocalSmokeVolume is 4 at maximum.




