My 90 day journey becoming a Unity game developer: Day-33
Objective: Installing the Post Processing Package and playing around with a couple of effects.
Post Processing allows imaging effects and filters to our game. To install it, we will do it under the Unity Packet Manager. Go to Window->Package Manager. The installation will take several minutes to install, but after the installation is complete you can go down to Packages in Assets to locate the folder.
In the Hierarchy, we need to create a Post Processing profile in an empty game object. Name it Post_Processing_Volume and add a component of type using the same name. This new component will allow us to create a profile and handle image effects.
Make sure to turn on the Is Global, as this will handle the entire environment and camera with everything viewed being effected. At Profile, click on New to create a profile for this volume.
If you check in the Scenes folder, there will be a new Game_Profiles folder added with the Post Processing Volume profile included.
Back at the Post-process volume, click on Add effect and select Bloom. Bloom will take the emissions data from the material and enhance them.
Click the drop-down arrow to see the Bloom settings. Click All and select On, and try manipulating the settings. You will notice nothing happens, because we need the attach a Post Processing Layer to the camera.
Click on the Camera in the Hierarchy, click on Add Component and select Post-process Layer. Head up to Layer, then add a new layer name Post Processing. Go back inside the Camera, click on Layer and add the Post Processing.
Go to Post Processing Volume, and select Post Processing in the Layer drop-down. Down at Bloom, increase the intensity and see what happens. As we see, nothing happens because we need to make sure that Off is selected. Now try again and we should see new effects taking place.
Another effect we will use is Color Grading. After adding the effect, turn All on and set the mode to High Definition Range.
To use HDR colors, we must switch to Linear. Go to File->Build Settings->Player Settings. In Player, change the Color Space to Linear under Rendering and close out.
Next we will add background music.