本页面包含有关如何开始基于可编程渲染管线 (SRP) 创建自己的自定义渲染管线的信息。
以下说明信息说明如何使用 SRP Core 包来创建自定义渲染管线。SRP Core 是 Unity 创建的包,其中包含可复用代码来帮助您创建自己的渲染管线,包括用于与平台特定的图形 API 结合使用的样板代码、用于常见渲染操作的实用函数以及供 URP 和 HDRP 使用的着色器库。有关 SRP Core 的更多信息,请参阅 SRP Core 包文档。
现在,您可以调试和修改 SRP 源代码副本中的脚本,并在 Unity 项目中查看更改的结果。
通用渲染管线 (URP) 和高清渲染管线 (HDRP) 提供广泛的自定义选项,可帮助您获得所需的图形和性能。但是,如果您希望获得更多控制权,可为这些渲染管线之一创建自定义版本,并修改源代码。
遵循以上部分(创建新项目并安装自定义 SRP 所需的包)中的第 1–3 步。到达第 4 步时,请按顺序安装以下包:
URP:
HDRP:
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.