在屏幕上显示图像之前,__后期处理__将全屏滤镜和效果应用于摄像机的图像缓冲区。此技术可以通过很短的设置时间大幅改善应用程序的视觉效果。后期处理效果可用于模拟物理摄像机和胶片属性。
下面的图像展示了应用和未应用后期处理的场景。
Unity 中可用的后期处理效果取决于用于渲染图形的管线。每个管线都有设置后期处理效果的不同方法,如下所示:
渲染管线 | 后期处理支持 |
---|---|
内置渲染管线 | 要使用后期处理效果,请下载后期处理 (Post-processing) 版本 2 包。 |
轻量级渲染管线 (LWRP) | LWRP 使用后期处理 (Post-processing) 版本 2 包(由 Unity 在使用 LWRP 模板创建项目时安装)。某些后期处理效果与此管线不兼容,例如环境光遮挡 (Ambient Occlusion) 和屏幕空间反射 (Screen Space Reflections)。 |
高清渲染管线 (HDRP) | HDRP 包括高清后期处理解决方案(由 Unity 在使用 HDRP 模板创建项目时安装)。 |
注意:后期处理栈 (Post processing stack) 版本 1 现已弃用,不应再使用。有关渲染管线的更多信息,请参阅关于可编程渲染管线的文档。
本手册的这一部分概述了 Unity 中可用的后期处理效果。如需具体了解如何使用 Unity 中提供的后期处理属性和脚本,请阅读后期处理包文档。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.