Creating Fog in Unity with HDRP

We continue our adventure in discovering HDRPs. Today I want to create a fog in my scene.

By taking advantage of this rendering pipeline the process is very easy and in a few steps, we can achieve the goal.

First, let’s go and add the “Fog” entry in our Global Volume. And let’s go to enable it.

The parameters we are most interested in are:
- Enable: which is used to enable it
- Fog Attenuation Distance: Controls the density at the base of the fog and determines how far you can see through the fog in meters.
- Volumentric Fog: Enables Volumetric Fog.

For the next step, all we need to do is insert a spotlight and change some parameters.

Specifically, let’s go right to the “Volumetrics” section.

By modifying this parameter we immediately see the change in the scene.

Here is the fog we wanted to make.

See you in the next article 🚀

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrea Alicino

Andrea Alicino

38 Followers

Unity developer and C# programmer. Currently looking for games industry employment.