{"id":2437,"date":"2020-09-14T17:32:31","date_gmt":"2020-09-14T09:32:31","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=2437"},"modified":"2020-09-14T18:08:53","modified_gmt":"2020-09-14T10:08:53","slug":"unityurp%e5%ad%a6%e4%b9%a0%e8%ae%b0%e5%bd%95%ef%bc%883%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=2437","title":{"rendered":"[Unity]URP\u5b66\u4e60\u8bb0\u5f55\uff083\uff09-\u8bd1"},"content":{"rendered":"\n<p>\u539f\u6587\u5730\u5740:<br><a href=\"https:\/\/docs.unity3d.com\/Packages\/com.unity.render-pipelines.universal@7.1\/manual\/rendering-in-universalrp.html\">https:\/\/docs.unity3d.com\/Packages\/com.unity.render-pipelines.universal@7.1\/manual\/rendering-in-universalrp.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/09\/Rendering_Flowchart.png\" alt=\"The UniversalRP Forward rendering loop\"\/><figcaption>URP\u6e32\u67d3\u8def\u5f84<\/figcaption><\/figure>\n\n\n\n<p>Unity\u4f7f\u7528URP\u6e32\u67d3\u6240\u6709\u6444\u50cf\u673a<br>\u5305\u62ec\u6e38\u620f\u5185\u7684\u6444\u50cf\u3001\u7f16\u8f91\u5668\u89c6\u56fe\u6444\u50cf\u673a\u3001\u53cd\u5c04\u63a2\u9488\u3001\u4ee5\u53caInspector\u9762\u677f\u4e0a\u7684\u9884\u89c8\u7a97\u53e3<\/p>\n\n\n\n<p>URP\u4e3a\u6bcf\u4e2a\u6444\u50cf\u673a\u6267\u884c\u4e00\u4e2aLoop\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a<br>1\u3001\u5bf9\u573a\u666f\u4e2d\u7684\u7269\u4ef6\uff0c\u6267\u884c\u88c1\u526a\uff08Cull\uff09<br>2\u3001\u751f\u6210\u6e32\u67d3\u6570\u636e<br>3\u3001\u6267\u884c\u6e32\u67d3\u5668-\u628a\u56fe\u50cf\u8f93\u51fa\u5230framebuffer<\/p>\n\n\n\n<p>URP \u53ef\u4ee5 \u5728\u6e32\u67d3\u5f00\u59cb\u548c\u7ed3\u675f\uff0c\u53ca\u6bcf\u4e2a\u6444\u50cf\u673a\u5faa\u73af\u5f00\u59cb\u548c\u6267\u884c \u6267\u884c\u81ea\u5df1\u7684\u4ee3\u7801<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6444\u50cf\u673a\u5faa\u73af<\/h2>\n\n\n\n<p>\u6b65\u9aa41\uff1a\u8bbe\u7f6e\u88c1\u526a\u53c2\u6570\uff08Setup Culling Parameters\uff09<br>\u914d\u7f6e\u88c1\u526a\u7cfb\u7edf\u88c1\u526a\u706f\u5149\u548c\u9634\u5f71\u7684\u53c2\u6570<br>\u4e5f\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u7684\u8bbe\u7f6e\u8986\u76d6\u7cfb\u7edf\u7684\u9ed8\u8ba4\u914d\u7f6e<\/p>\n\n\n\n<p>\u6b65\u9aa42\uff1a\u88c1\u526a\uff08Culling\uff09<br>\u7528\u4e0a\u6b65\u7684 \u88c1\u526a\u53c2\u6570\u6765\u8ba1\u7b97\u6444\u50cf\u673a \u53ef\u89c1\u7684\u7269\u4ef6\u3001\u9634\u5f71\u6295\u5c04\u5668\u3001\u706f\u5149<br>\u88c1\u526a\u53c2\u6570\u548c\u6444\u50cf\u673a\u7684Layer\u914d\u7f6e \u5f71\u54cd\u4e86 \u88c1\u526a\u548c\u6e32\u67d3\u7684\u6027\u80fd<\/p>\n\n\n\n<p>\u6b65\u9aa43\uff1a\u6784\u5efa\u6e32\u67d3\u6570\u636e<br>\u6839\u636e\u88c1\u526a\u8f93\u51fa\uff0cURP\u914d\u7f6e\u3001\u6444\u50cf\u673a\u7684\u914d\u7f6e\u80fd\u8ba9\u5f53\u524d\u8fd0\u884c\u7684\u5e73\u53f0\uff0c\u6784\u5efaRenderingData\uff0c\u6e32\u67d3\u6570\u636e\u544a\u8bc9\u6444\u50cf\u673a\u548c\u5f53\u524d\u5e73\u53f0\u6240\u9700\u7684\u6e32\u67d3\u5de5\u4f5c\u53ca\u56fe\u5f62\u914d\u7f6e<\/p>\n\n\n\n<p>\u6b65\u9aa44\uff1a\u8bbe\u7f6e\u6e32\u67d3\uff08Setup Renderer\uff09<br>\u6784\u5efa\u6e32\u67d3Pass\u5217\u8868\uff0c\u6839\u636e\u6e32\u67d3\u6570\u636e\u5c06\u5b83\u4eec\u6392\u961f\u6267\u884c<br>\u4e5f\u53ef\u4ee5\u81ea\u5df2\u7684\u6e32\u67d3\u5668\u8986\u76d6\u7cfb\u7edf\u9ed8\u8ba4\u7684<\/p>\n\n\n\n<p>\u6b65\u9aa45\uff1a\u6267\u884c\u6e32\u67d3\uff08Execute Renderer\uff09<br>\u6267\u884c\u961f\u5217\u4e2d\u7684\u6bcf\u4e2a\u6e32\u67d3Pass\uff0c\u5c06\u56fe\u50cf\u6e32\u67d3\u5230\u5e27\u7f13\u51b2<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u5730\u5740:https:\/\/docs.unity3d.com\/Packages\/com.unity.render [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2437"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2437"}],"version-history":[{"count":8,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2437\/revisions"}],"predecessor-version":[{"id":2446,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/2437\/revisions\/2446"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}