To add a vignette effect, perform the following steps:
- Work with your copy of the project for the previous recipe.
- Create an empty GameObject by navigating to GameObject | Create Empty. Name it PostProcessingHall, set the Position to (6, 2, -11), and attach a postprocessing volume to it.
- With PostProcessingHall selected in the Hierarchy panel, click on Add Component and search for Volume.
- Next, create a PostProcessing profile by clicking on New.
- With PostProcessingHall selected in the Inspector panel, add an override by clicking on Add Override. Then, click on PostProcessing, and select an override.
- Select Vignette and set the Color to black, Intensity to 1, Smoothness to 0.6, and then select Rounded. You should be able to view a darkening effect around the edges of the scene: