- Unity 2018 Shaders and Effects Cookbook
- John P. Doran Alan Zucconi
- 225字
- 2025-04-04 16:34:19
How it works...
Each time we add an effect to a Post-processing Volume, we are overriding what would normally be put onto the screen.
If you've been to a movie theater that still uses film, you may have noticed how there were little specks in the filmstock while the film was playing. The grain effect simulates this film grain, causing the effect to become more pronounced the more the movie is played. This is often used in horror games to obscure the player's vision.
For more information on the grain effect, check out: https://github.com/Unity-Technologies/PostProcessing/wiki/Grain.
In the film world, vignetting can be an unintended effect of using the wrong type of lens for the type of shot you are trying to achieve or the aspect ratio that you are shooting for. In game development, we typically use vignetting for dramatic effect or to have players focus on the center of the screen by darkening and/or desaturating the edges of the screen compared to the center.
For more information on the vignette effect, check out: https://github.com/Unity-Technologies/PostProcessing/wiki/Vignette.
The depth of field setting basically determines what is blurry and what isn't. The idea is to have items of importance in focus while items in the background are not.
For more information on the depth of field effect, check out: https://github.com/Unity-Technologies/PostProcessing/wiki/Depth-of-Field.