Adding Post Processing
Postprocessing effects add that little extra something that can set your game apart. Technically, they are beyond the scope of this book, but we can do a super-fast visit just for fun.
Recall that there are things called scriptable render pipelines. Currently, by default, Unity supports what is called built-in pipelines. Also available are the Universal Render Pipeline (URP) and the High Definition Pipeline (HDP). We are using a built-in pipeline. Eventually, URP will become the default, but that is a tale for another day:
- Firstly, in the Package Manager, under Unity Registry, import the Post Processing package.
In order to add postprocessing effects, at a minimum we need to create what is called a Post-Process Volume and we need to add a Post-Process Layer to our main camera. So, let's add this last bit of polish.
- Create an empty object in your Hierarchy and call it
PP
. - Create a new layer called
PP
and assign the PP object to that layer...