Convert post-processing scripts
HDRP no longer supports the Post Processing package and instead includes its own implementation for post-processing. If your Project uses the Post Processing package, remove the Post Processing package from the Project. To do this:
- In the Unity Editor, open the Package Manager window (menu: Window > Package Manager).
- Find and select the Post Processing package, and click Remove.
If your Project uses the Post Processing package's Scripting API to edit post-processing effects, you need to update your scripts to work with the new post-processing effects. To convert the Scene to HDRP post-processing:
In the Hierarchy, delete your post-processing GameObject.
Create a new Global Volume GameObject (menu: GameObject > Volume > Global Volume) and name it "Post-processes".
Create a new Volume Profile:
- Open the Global Volume's Inspector window and go to the Volume component.
- Go to Profile and select New.
Add a Tonemapping override to the Volume:
- Go to Add Override > Post-processing > Tonemapping.
- Enable Mode and set it to ACES.
Add a Bloom override to the Volume
- Go to Add Override > Post-processing > Bloom.
- Enable Intensity and set it to 0.2.
Note: The result of the Bloom isn't the same as the one in the Post Processing package. This is because HDRP's Bloom effect is physically accurate, and mimics the quality of a camera lens.
Add a Motion Blur override to the Volume:
- Go to Add Override > Post-processing > Motion Blur.
- Enable Intensity and set it to 0.1.
Add a Vignette override to the Volume:
Go to Add Override > Post-processing > Vignette.
Set the following property values:
- Enable Intensity and set it to 0.55.
- Enable Smoothness and set it to 0.4.
- Enable Roundness and set it to 0.
Add a Depth Of Field override to the Volume:
Go to Add Override > Post-processing > Depth Of Field.
Set the following property values:
Enable Focus Mode and set it to Manual.
In the Near Blur section:
- Enable Start and set it to 0
- Enable End and set it to 0.5
In the Far Blur section:
- Enable Start and set it to 2.
- Enable End and set it to 10. This effect is only visible in the Game view.
Select the Global Settings GameObject to view it in the Inspector.
In the Volume component, add an Ambient Occlusion override:
- Go to Add Override > Lighting > Ambient Occlusion.
- Enable Intensity and set it to 0.5.