How to use Post Processing in Unity
Objective: Set up Post Processing in Unity.
To get started, go to Window, Package Manager, then scroll down to Post Processing and install it. This will install and then recompile the project with the package in the project folder.
Now that we have it installed, we need to create a post processing profile. Create an empty game object and rename it accordingly (Post Processing Volume). Next add a component of Post-process Volume in the inspector.
There are global and local selections. Global will apply to everything and local can be used for bigger levels where certain sections would be processed differently such as caves, underwarter and so on. For this game a global processing will be applied. We also need a profile so click new and it will attach it and place the profile in the scenes folder, game profiles.
In order for the effects to work, we need to enable the feature on the main camera. Go to the main camera and add the component Post-process layer. We need to create a layer for the post processing, so select the post process volume from the hierarchy and in the inspector, go to layer, add layer and give it a name (Post Processing). Now go to main camera, post process layer and set the layer as Post Processing. Finally go back to the Post Process Volume and set the layer.
We’re now ready to add some effects, which we will assign to our game in the next post.