Understanding the FogVolume node
The FogVolume node adds fog to a specific area. You can use many shapes to hold the fog, including a box, cones, cylinders, ellipsoids, as well as the world. In this recipe, we will create a FogVolume node and use it on the ship.
Getting ready
For this recipe, we will use the SDFGI scene that we used in the preceding two recipes. You can also download the project from this book’s GitHub repository.
Like the previous recipes, make sure the renderer is set to Forward+.
How to do it…
In this recipe, we will create a FogVolume node and see how it looks:
- Click World in the Scene tab and then click + to add the FogVolume node.
- Enable Volumetric Fog in the WorldEnvironment node.
- In the Inspector area, click <empty> to the right of Material and select New FogMaterial:
Figure 3.5 – New FogMaterial
- Click on FogMaterial to the right of Material to open the Properties area...