Adding Fog to the Scene
In HDRP, fog is part of Post-Processing volume. To use it, we will need to create or use an existing volume and add the fog override.
To be able to light the fog like the picture above:
- The fog will need to be thick enough. Use Fog Attenuation Distance for that. The smaller the distance, the thicker the fog.
- Volumetric Fog must be on. There you can change the color and quality.
- Note: For some reason, Unity hides certain settings. To show them, click the gear with a circle at the top of the override. That will show quality settings.
Enabling Light Layers
Light layers are used to allow lights to illuminate certain things. This can be a huge boost to performance too. Here is how to enable them:
- Select the lights you wish to change.
- This feature is also hidden and must be shown. Go to the inspector and click the gear beside the General tab.
- When you do that, Light Layer will show up.
- In my case, I set it to Nothing. That’s what created that cool fog effect above! You can also set up a new layer, assign the objects you wish to illuminate to that layer, then set the light to that layer.
That was how I set up that cool Fog effect above!
Next, Using Cookies to Create Realistic Lighting!
Thank you for your time!