How to use Post Processing in Unity
Post Processing in Unity can be thought of as a type of PhotoShop for your game. It can be used to add effects and filters to your game to make it look a lot more polished.
First things first, we need to install the Post Processing Package from the Unity Package Manager. Left click on Window, then left click on Package Manager. This will open the Package Manager window, which will show us all of the Unity Dev made packages that we can download.
We are of course after the Post Processing Package; once found; left click on it and install. After the installation has finished if we look in our project window and inside of the Packages tab we will now have a Post Processing folder.
Now in order to use Post Processing in our game we will first need to create a Post Processing Profile. This is accomplished by first creating an empty GameObject in the Hierarchy and renaming it Post Process Volume. Then left click on Add Component, type post into search bar and left click on Post-process Volume. Now in order to make sure that everything in our scene is effected by this Post Processing we need to check the Is Global box, as below:
Next, in order to add this profile to our scene we need to click on the New button in the Post-process Volume Component. Just as we have different layers for our background and foreground, we also need a layer for our Post Processing Volume.
To create a layer left click on Default next to Layer, then left click on Add Layer and name it Post Processing, as below:
Now that we have created this Layer, we need to set the Default Layer of the Post Process Volume to this Layer. This is done by left clicking on Default and then Left clicking on the Post Processing Layer, as shown below:
In order to have any effects we add to the Post Process Volume show onscreen we need add a Post Process Layer to our camera and set the Post-process Layer, Layer to Post Processing, as below:
Now we can start adding effects to our Post Process Volume by left clicking on it in the Hierarchy, left clicking on Add effect, left clicking on Unity and selecting the effect we want to use, as shown below: