为了获得最佳的后期处理结果,建议在启用 HDR 的线性颜色空间中工作。此外,建议使用deferred rendering path(延迟渲染路径)(基于某些效果的需要,例如屏幕空间反射)。
首先,需要将 Post Processing Behaviour 脚本添加到摄像机。可以通过选择摄像机并使用以下方法之一来实现此目的:
将 PostProcessingBehaviour.cs 脚本从 Project 窗口拖到摄像机。
使用菜单:__Component__ > Effects > Post Processing Behaviour。
使用 Inspector 中的 Add Component 按钮。
现在有了一个配置了空配置文件的行为。下一步是使用以下方法之一创建自定义配置文件:
在 Project 窗口中单击鼠标右键,然后选择 Create > Post-Processing Profile。
使用菜单:__Assets__ > Create > Post-Processing Profile。
随后将在项目中创建一个新资源。
后期处理配置文件是项目资源,可在场景/摄像机之间以及不同项目之间或 Asset Store 上轻松共享。这样就能更方便地创建预设(如用于桌面平台的高质量预设或用于移动平台的较低设置)。
选中配置文件将显示 Inspector 窗口以便编辑配置文件设置。
要将配置文件分配给行为,可将其从 Project 面板拖动到组件或使用 Inspector 中的对象选择器。
选择配置文件后,可使用 Inspector 中每个效果的复选框来启用或禁用每个效果。可以在每一种效果的文档页面中找到各自的更多相关信息。
2017–05–24 页面已发布并只进行了有限的编辑审查
5.6 中的新功能
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.