Skip to content

Volumetric Fog Package for URP Forward+

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

haze-core/Universal-ForwardPlus-VolumetricFog

 
 

Repository files navigation

Universal Forward+ Volumetric Fog (Global)

Sample

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

How to Use

  1. Add 'FP Volumetric Fog' renderer feature to Renderer data (Make sure to use Forward+)
  2. Create 'Volumetric Config' via 'Create/UniversalVolumetric/VolumetricFogConfig'
  3. 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.

How To Use

Smoke Volume

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.

Smoke Volume Smoke Volume2 Smoke Volume Component

Limitations

  1. XR not supported

  2. Additional Directional & Local(point & spot) lights are only available in Forward+

    (In other words, only MainLight is working for Forward)

  3. DiffuseGI does not contribute to lighting

  4. Noise texture is not supported

  5. The number of LocalSmokeVolume is 4 at maximum.

About

Volumetric Fog Package for URP Forward+

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 79.5%
  • HLSL 19.7%
  • ShaderLab 0.8%