Volumetric Environment Shaders
Fog Volume/Fog Volume Lite
The first shader is an extremely customizable fog shader with several variants for performance optimization. Shader variants are listed below with their included properties.
Fog Volume - DoF + Scattering: Variant including a depth of field effect and atmospheric scattering
Features:
Saturation falloff
Height blending
Separate skybox height blending
Depth of field
Atmospheric scattering
Noise mask in fog to simulate wind
Fog Volume - Scattering: Variant including atmospheric scattering but no DoF
Features:
Saturation falloff
Height blending
Separate skybox height blending
Atmospheric scattering
Noise mask in fog to simulate wind
Fog Volume Lite - Scattering: A more performant variant of the fog which does not use a grabpass
Features:
Height blending
Separate skybox height blending
Atmospheric scattering
Noise mask for wind
Fog Volume Lite: Performant fog variant minus scattering effect for extra performance.
Features:
Height blending
Separate skybox height blending
Noise mask for wind
Lit Smoke Particles
The second shader here is a particle shader that has full lighting support for all types of light. Using it along with the fog shader can create an immersive ground fog effect. Like the previous shader, the package includes several variants.
Lit Scattering: Base effect plus light scattering throughout the smoke volume
Features:
Customizable alpha via texture
Customizable blending
Customizable animation speed
Light scattering
Detail noise map
Emission
Multiple light support
Soft particle factor
Distance fading
Lit Normal: Base effect with no extras
Features:
Customizable alpha via texture
Customizable blending
Customizable animation speed
Detail noise map
Emission
Multiple light support
Soft particle factor
Distance fading
Lit Single: Base effect with support for only one light
Features:
Customizable alpha via texture
Customizable blending
Customizable animation speed
Detail noise map
Single light
Emission
Soft particle factor
Distance fading
Lit Single Scattering: Base effect plus scattering throughout the smoke volume. Has support for only a single light
Features:
Customizable alpha via texture
Customizable blending
Customizable animation speed
Single light
Detail noise map
Emission
Soft particle factor
Distance fading
Light scattering
Unlit: Base effect with no lighting support. Extremely performant
Features:
Customizable alpha via texture
Customizable blending
Customizable animation speed
Detail noise map
Emission
Soft particle factor
Distance fading
How to use:
Simply import the package into your project and check out the example scene titled "VolumetricEnvironmentShaders - Example Scene"
Here you will find an already set up scene with multiple options in the hierarchy for you to check out the different shader variants. Use and play with the materials here to really get a feel for how the properties can change the appearance of the smoke and fog.