{"id":52832,"date":"2025-08-11T20:09:15","date_gmt":"2025-08-11T12:09:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/52832.html"},"modified":"2025-08-11T20:09:15","modified_gmt":"2025-08-11T12:09:15","slug":"%e3%80%90%e6%b8%b2%e6%9f%93%e6%b5%81%e6%b0%b4%e7%ba%bf%e3%80%91%e5%87%a0%e4%bd%95%e9%98%b6%e6%ae%b5-%e5%b1%8f%e5%b9%95%e6%98%a0%e5%b0%84%e4%bb%a5unityurp%e4%b8%ba%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/52832.html","title":{"rendered":"\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b"},"content":{"rendered":"<p>\u3010\u4eceUnityURP\u5f00\u59cb\u63a2\u7d22\u6e38\u620f\u6e32\u67d3\u3011\u4e13\u680f-\u76f4\u8fbe<\/p>\n<h2>\u524d\u60c5\u63d0\u8981<\/h2>\n<p>\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011\u4e3b\u7ebf\u7d22\u5f15-\u4ece\u6570\u636e\u5230\u56fe\u50cf\u4ee5UnityURP\u4e3a\u4f8b-CSDN\u535a\u5ba2<\/p>\n<h2 id=\"\u88c1\u526a\u7684\u76ee\u6807\">\u88c1\u526a\u7684\u76ee\u6807<\/h2>\n<ul>\n<li>\u5c4f\u5e55\u6620\u5c04\u9636\u6bb5\u662f\u5c06NDC\u4e09\u7ef4\u7a7a\u95f4\u5750\u6807\u8f6c\u6362\u4e3a\u6700\u7ec8\u5c4f\u5e55\u50cf\u7d20\u4f4d\u7f6e\u7684\u5173\u952e\u6b65\u9aa4\u3002<\/li>\n<li>\u6b64\u9636\u6bb5\u7531GPU\u56fa\u5b9a\u7ba1\u7ebf\u5b8c\u6210&#xff0c;\u5f00\u53d1\u8005\u4e0d\u53ef\u7f16\u7a0b&#xff0c;\u4ec5\u53ef\u901a\u8fc7\u89c6\u53e3\u8bbe\u7f6e\u8c03\u6574\u6620\u5c04\u8303\u56f4<\/li>\n<\/ul>\n<p><span style=\"background-color:#fefcd8\">&#xff08;<\/span><span style=\"background-color:#fefcd8\">\u5bf9\u6e32\u67d3\u7684\u63a2\u7d22\u662f\u4e2a\u6301\u7eed\u4e0d\u65ad\u5b8c\u5584\u7684\u8fc7\u7a0b&#xff0c;\u8bb0\u5f55\u8fd9\u4e2a\u8fc7\u7a0b\u5c06\u96f6\u6563\u7684\u5185\u5bb9\u6574\u7406\u8d77\u6765&#xff0c;\u5176\u4e2d\u80af\u5b9a\u4f1a\u6709\u7406\u89e3\u504f\u5dee\u548c\u95ee\u9898&#xff0c;\u5982\u679c\u54ea\u91cc\u6709\u95ee\u9898&#xff0c;\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u63a2\u8ba8\u548c\u6307\u51fa&#xff09;<\/span><\/p>\n<p>NDC\u5750\u6807\u8303\u56f4\u200c<\/p>\n<ul>\n<li>NDC\u7a7a\u95f4\u662f\u88c1\u526a\u7a7a\u95f4\u7ecf\u8fc7\u900f\u89c6\u9664\u6cd5&#xff08;\u9664\u4ee5w\u5206\u91cf&#xff09;\u540e\u5f97\u5230\u7684\u5f52\u4e00\u5316\u7acb\u65b9\u4f53&#xff0c;\u5750\u6807\u8303\u56f4\u4e3a&#xff1a;<\/li>\n<li>x, y\u8f74&#xff1a;[-1, 1]&#xff08;\u5de6\u4e0b\u89d2\u4e3a(-1,-1)&#xff0c;\u53f3\u4e0a\u89d2\u4e3a(1,1)&#xff09;<\/li>\n<li>z\u8f74&#xff1a;[0, 1]&#xff08;\u6df1\u5ea6\u503c&#xff0c;0\u4e3a\u8fd1\u88c1\u526a\u9762&#xff0c;1\u4e3a\u8fdc\u88c1\u526a\u9762&#xff09;<\/li>\n<\/ul>\n<h2 id=\"\u89c6\u53e3\u53d8\u6362\u5c4f\u5e55\u6620\u5c04\">\u89c6\u53e3\u53d8\u6362&#xff08;\u5c4f\u5e55\u6620\u5c04&#xff09;<\/h2>\n<ul>\n<li>\u5c06NDC\u5750\u6807\u6620\u5c04\u5230\u5c4f\u5e55\u7a7a\u95f4&#xff1a;<\/li>\n<li>x\u8f74\u200c&#xff1a;\u5c06[-1, 1]\u7ebf\u6027\u6620\u5c04\u5230[0, \u5c4f\u5e55\u5bbd\u5ea6]\n<ul>\n<li>xScreen&#061;(xNDC&#043;1)\u00d70.5\u00d7\u5c4f\u5e55\u5bbd\u5ea6<\/li>\n<\/ul>\n<\/li>\n<li>\u200cy\u8f74\u200c&#xff1a;\u56e0\u5c4f\u5e55\u5750\u6807\u7cfb\u539f\u70b9\u5728\u5de6\u4e0a\u89d2&#xff0c;\u9700\u53cd\u8f6cy\u8f74&#xff08;1 &#8211; NDC_y&#xff09;\u518d\u6620\u5c04\u5230[0, \u5c4f\u5e55\u9ad8\u5ea6]\n<ul>\n<li>yScreen&#061;(1\u2212yNDC)\u00d70.5\u00d7\u5c4f\u5e55\u9ad8\u5ea6<\/li>\n<\/ul>\n<\/li>\n<li>\u4fdd\u7559z_{ndc}\u7528\u4e8e\u6df1\u5ea6\u6d4b\u8bd5\u200c<\/li>\n<\/ul>\n<h2 id=\"urp\u4e2d\u7684\u5177\u4f53\u6620\u5c04\u6848\u4f8b\">URP\u4e2d\u7684\u5177\u4f53\u6620\u5c04\u6848\u4f8b\u200c<\/h2>\n<ul>\n<li>\u5047\u8bbe\u5c4f\u5e55\u5206\u8fa8\u7387\u4e3a1920\u00d71080&#xff0c;\u4e00\u4e2aNDC\u5750\u6807\u4e3a(0, 0, 0.5)&#xff1a;<\/li>\n<li>\u200cx\u8f74\u6620\u5c04\u200c&#xff1a;Screen_x &#061; (0 &#043; 1)\/2 \u00d7 1920 &#061; 960<\/li>\n<li>\u200cy\u8f74\u6620\u5c04\u200c&#xff1a;Screen_y &#061; (1 &#8211; 0)\/2 \u00d7 1080 &#061; 540&#xff08;\u56e0y\u8f74\u53cd\u8f6c&#xff0c;NDC\u76840\u5bf9\u5e94\u5c4f\u5e55\u9876\u90e8&#xff09;<\/li>\n<li>\u200c\u7ed3\u679c\u200c&#xff1a;\u8be5\u70b9\u4f4d\u4e8e\u5c4f\u5e55\u6b63\u4e2d\u592e\u50cf\u7d20(960, 540)\u5904<\/li>\n<\/ul>\n<h3 id=\"\u6280\u672f\u7ec6\u8282\u8bf4\u660e\">\u200c\u6280\u672f\u7ec6\u8282\u8bf4\u660e\u200c<\/h3>\n<ul>\n<li>\u200c\u89c6\u53e3\u8c03\u6574\u200c&#xff1a;\u53ef\u901a\u8fc7UnityEngine.Rendering.CommandBuffer.SetViewport\u4fee\u6539\u6620\u5c04\u533a\u57df&#xff08;\u5982\u753b\u4e2d\u753b\u6548\u679c&#xff09;&#xff0c;\u9ed8\u8ba4\u6620\u5c04\u5168\u5c4f\u3002<\/li>\n<li>\u200c\u4e0e\u88c1\u526a\u7a7a\u95f4\u5173\u7cfb\u200c&#xff1a;\u9876\u70b9\u7740\u8272\u5668\u9700\u8f93\u51fa\u9f50\u6b21\u88c1\u526a\u5750\u6807&#xff08;\u5982UnityObjectToClipPos(v.vertex)&#xff09;&#xff0c;GPU\u81ea\u52a8\u6267\u884c\u900f\u89c6\u9664\u6cd5\u548c\u5c4f\u5e55\u6620\u5c04\u3002<\/li>\n<li>\u200c\u7cbe\u5ea6\u5f71\u54cd\u200c&#xff1a;\u9ad8\u5206\u8fa8\u7387\u4e0b\u6d6e\u70b9\u7cbe\u5ea6\u8bef\u5dee\u53ef\u80fd\u5f15\u8d77\u50cf\u7d20\u504f\u79fb&#xff0c;\u9700\u6ce8\u610f\u6297\u952f\u9f7f\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<p>\/\/\u8ba1\u7b97\u70b9\u5728\u5c4f\u5e55\u7a7a\u95f4\u4e2d\u7684\u4f4d\u7f6e:\u9996\u5148positionCS\u4e2d\u7684\u503c\u8fd8\u6ca1\u6709\u8fdb\u884c\u5176\u6b21\u9664\u6cd5&#xff0c;\u9700\u8981\u5148\u9664\u4ee5positionCS.w\u8f6c\u6362\u4e3a<br \/>\n\/\/NDC\u5750\u6807&#xff0c;\u8303\u56f4[-1,1]&#xff0c;\u7136\u540e*0.5&#043;0.5\u540e\u8f6c\u4e3a[0,1],\u6700\u540e\u4e58\u4ee5_ScreenParams\u8f6c\u6362\u4e3a\u6700\u7ec8\u7684\u5c4f\u5e55\u7a7a\u95f4\u4f4d\u7f6e<br \/>\nfloat2 p0 &#061; _ScreenParams.xy * (p[0].positionCS.xy \/ p[0].positionCS.w * 0.5 &#043; 0.5);<\/p>\n<h2 id=\"\u51e0\u4f55\u9636\u6bb5\u5b8c\u6574\u6d41\u7a0b\u53ca\u6570\u636e\u53d8\u6362\u793a\u4f8b\">\u51e0\u4f55\u9636\u6bb5\u5b8c\u6574\u6d41\u7a0b\u53ca\u6570\u636e\u53d8\u6362\u793a\u4f8b\u200c<\/h2>\n<p>\u200c\u521d\u59cb\u5750\u6807\u200c&#xff1a;\u6a21\u578b\u7a7a\u95f4\u9876\u70b9\u5750\u6807\u00a0(2.0, 1.0, -3.0, 1.0)&#xff08;\u9f50\u6b21\u5750\u6807w&#061;1&#xff09;&#xff0c;\u6444\u50cf\u673a\u4f7f\u7528\u900f\u89c6\u6295\u5f71&#xff0c;\u8fd1\u5e73\u9762z&#061;0.3&#xff0c;\u8fdc\u5e73\u9762z&#061;1000&#xff0c;\u89c6\u53e3\u5206\u8fa8\u73871920&#215;1080\u3002<\/p>\n<h3 id=\"1-\u9876\u70b9\u7740\u8272\u5668vertex-shader\">\u200c1. \u9876\u70b9\u7740\u8272\u5668&#xff08;Vertex Shader&#xff09;\u200c<\/h3>\n<ul>\n<li>\u200c\u8f93\u5165\u200c&#xff1a;\u6a21\u578b\u7a7a\u95f4\u5750\u6807\u00a0(2.0, 1.0, -3.0, 1.0)<\/li>\n<li>\u200c\u64cd\u4f5c\u200c&#xff1a;\u5e94\u7528MVP\u77e9\u9635&#xff08;Model-View-Projection&#xff09;\u53d8\u6362\u5230\u9f50\u6b21\u88c1\u526a\u7a7a\u95f4\u3002\u5047\u8bbe\u53d8\u6362\u540e\u8f93\u51fa\u4e3a&#xff1a;(x\u2032,y\u2032,z\u2032,w\u2032)&#061;(1.5,0.8,\u22122.2,3.0)<\/li>\n<li>\u200c\u8f93\u51fa\u200c&#xff1a;\u9f50\u6b21\u88c1\u526a\u5750\u6807\u00a0(1.5, 0.8, -2.2, 3.0)<\/li>\n<\/ul>\n<h3 id=\"2-\u66f2\u9762\u7ec6\u5206\u7740\u8272\u5668\u53ef\u9009tessellation-shader\">\u200c2. \u66f2\u9762\u7ec6\u5206\u7740\u8272\u5668&#xff08;\u53ef\u9009&#xff0c;Tessellation Shader&#xff09;\u200c<\/h3>\n<ul>\n<li>\u200c\u8f93\u5165\u200c&#xff1a;\u82e5\u542f\u7528\u7ec6\u5206&#xff0c;\u63a5\u6536\u63a7\u5236\u70b9\u6570\u636e&#xff08;\u5982\u539f\u59cb\u4e09\u89d2\u5f62\u9876\u70b9&#xff09;\u3002<\/li>\n<li>\u200c\u64cd\u4f5c\u200c&#xff1a;\u7ec6\u5206\u751f\u6210\u65b0\u9876\u70b9&#xff0c;\u4f8b\u5982\u8f93\u51fa\u65b0\u589e\u9876\u70b9\u00a0(1.2, 0.6, -2.0, 2.8)\u3002<\/li>\n<li>\u200c\u8f93\u51fa\u200c&#xff1a;\u7ec6\u5206\u540e\u7684\u9f50\u6b21\u88c1\u526a\u5750\u6807&#xff08;\u5047\u8bbe\u672a\u542f\u7528&#xff0c;\u8df3\u8fc7\u6b64\u9636\u6bb5&#xff09;<\/li>\n<\/ul>\n<h3 id=\"3-\u51e0\u4f55\u7740\u8272\u5668\u53ef\u9009geometry-shader\">\u200c3. \u51e0\u4f55\u7740\u8272\u5668&#xff08;\u53ef\u9009&#xff0c;Geometry Shader&#xff09;\u200c<\/h3>\n<ul>\n<li>\u200c\u8f93\u5165\u200c&#xff1a;\u56fe\u5143\u9876\u70b9&#xff08;\u5982\u4e09\u89d2\u5f62\u4e09\u4e2a\u9876\u70b9&#xff09;\u3002<\/li>\n<li>\u200c\u64cd\u4f5c\u200c&#xff1a;\u53ef\u751f\u6210\u65b0\u56fe\u5143&#xff08;\u5982\u5c06\u4e09\u89d2\u5f62\u62c6\u5206\u4e3a\u591a\u4e2a\u7ebf\u6bb5&#xff09;\u3002\u82e5\u672a\u542f\u7528&#xff0c;\u76f4\u63a5\u4f20\u9012\u6570\u636e\u3002<\/li>\n<li>\u200c\u8f93\u51fa\u200c&#xff1a;\u539f\u59cb\u6216\u65b0\u589e\u7684\u9f50\u6b21\u88c1\u526a\u5750\u6807&#xff08;\u5047\u8bbe\u672a\u542f\u7528&#xff0c;\u8df3\u8fc7\u6b64\u9636\u6bb5&#xff09;<\/li>\n<\/ul>\n<h3 id=\"4-\u56fe\u5143\u88c5\u914dprimitive-assembly\">\u200c4. \u56fe\u5143\u88c5\u914d&#xff08;Primitive Assembly&#xff09;\u200c<\/h3>\n<ul>\n<li>\u200c\u8f93\u5165\u200c&#xff1a;\u9f50\u6b21\u88c1\u526a\u5750\u6807\u00a0(1.5, 0.8, -2.2, 3.0)&#xff08;\u5047\u8bbe\u4e3a\u4e09\u89d2\u5f62\u7684\u4e00\u4e2a\u9876\u70b9&#xff09;\u3002<\/li>\n<li>\u200c\u64cd\u4f5c\u200c&#xff1a;\u5c06\u9876\u70b9\u7ec4\u88c5\u4e3a\u56fe\u5143&#xff08;\u5982\u4e09\u89d2\u5f62&#xff09;&#xff0c;\u5e76\u8ba1\u7b97\u5305\u56f4\u76d2\u3002<\/li>\n<li>\u200c\u8f93\u51fa\u200c&#xff1a;\u5b8c\u6574\u7684\u4e09\u89d2\u5f62\u56fe\u5143&#xff08;\u4e09\u4e2a\u9876\u70b9\u6570\u636e&#xff09;<\/li>\n<\/ul>\n<h3 id=\"5-\u89c6\u9525\u4f53\u88c1\u526afrustum-culling\">\u200c5. \u89c6\u9525\u4f53\u88c1\u526a&#xff08;Frustum Culling&#xff09;\u200c<\/h3>\n<ul>\n<li>\u200c\u8f93\u5165\u200c&#xff1a;\u9f50\u6b21\u88c1\u526a\u5750\u6807\u00a0(1.5, 0.8, -2.2, 3.0)\u3002<\/li>\n<li>\u200c\u64cd\u4f5c\u200c&#xff1a;\n<ul>\n<li>\u200c\u900f\u89c6\u9664\u6cd5\u200c&#xff1a;\u8f6c\u6362\u4e3aNDC\u5750\u6807\u00a0(1.5\/3.0, 0.8\/3.0, -2.2\/3.0) &#061; (0.5, 0.267, -0.733)\u3002<\/li>\n<li>\u200c\u8fb9\u754c\u68c0\u67e5\u200c&#xff1a;\u82e5NDC\u5750\u6807\u8d85\u51fa[-1,1]\u8303\u56f4\u5219\u88c1\u526a\u3002\u672c\u4f8b\u4e2dx\/y\u5728\u8303\u56f4\u5185&#xff0c;\u4f46z&#061;-0.733&#xff08;OpenGL\u4e0b\u6709\u6548&#xff0c;DirectX\u9700z\u2208[0,1]\u5219\u5254\u9664&#xff09;\u3002<\/li>\n<li>\u200c\u63d2\u503c\u88c1\u526a\u200c&#xff1a;\u82e5\u90e8\u5206\u9876\u70b9\u8d85\u51fa\u8fb9\u754c&#xff0c;\u751f\u6210\u65b0\u9876\u70b9&#xff08;\u5982\u88c1\u526az\u8fb9\u754c\u65f6\u63d2\u503c\u8ba1\u7b97\u65b0\u5750\u6807&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u200c\u8f93\u51fa\u200c&#xff1a;\u88c1\u526a\u540e\u7684NDC\u5750\u6807&#xff08;\u5047\u8bbe\u5168\u90e8\u4fdd\u7559&#xff09;\u00a0(0.5, 0.267, -0.733)\u3002<\/li>\n<\/ul>\n<h3 id=\"6-\u5c4f\u5e55\u6620\u5c04screen-mapping\">\u200c6. \u5c4f\u5e55\u6620\u5c04&#xff08;Screen Mapping&#xff09;\u200c<\/h3>\n<ul>\n<li>\u200c\u8f93\u5165\u200c&#xff1a;NDC\u5750\u6807\u00a0(0.5, 0.267, -0.733)\u3002<\/li>\n<li>\u200c\u64cd\u4f5c\u200c&#xff1a;\n<ul>\n<li>\u200c\u89c6\u53e3\u53d8\u6362\u200c&#xff1a;\u5c06NDC\u7684xy\u6620\u5c04\u5230\u5c4f\u5e55\u50cf\u7d20\u5750\u6807&#xff08;\u59821920&#215;1080&#xff09;&#xff1a;\n<ul>\n<li>xscreen&#061;(0.5&#043;1)\u22171920\/2&#061;1440<\/li>\n<li>yscreen&#061;(0.267&#043;1)\u22171080\/2&#061;684.18<\/li>\n<\/ul>\n<\/li>\n<li>\u200c\u6df1\u5ea6\u4fdd\u7559\u200c&#xff1a;z\u503c\u8f6c\u6362\u4e3a\u6df1\u5ea6\u7f13\u51b2\u503c&#xff08;\u5982OpenGL\u4e0b\u00a0(-0.733&#043;1)\/2&#061;0.1335&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u200c\u8f93\u51fa\u200c&#xff1a;\u5c4f\u5e55\u7a7a\u95f4\u5750\u6807\u00a0(1440, 684, 0.1335)\u3002<\/li>\n<\/ul>\n<p>\u63a5\u4e0b\u6765&#xff1a;\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u5149\u6805\u9636\u6bb5]-[\u5149\u6805\u63d2\u503c]\u4ee5UnityURP\u4e3a\u4f8b-CSDN\u535a\u5ba2<\/p>\n<hr \/>\n<p>\u3010\u4eceUnityURP\u5f00\u59cb\u63a2\u7d22\u6e38\u620f\u6e32\u67d3\u3011\u4e13\u680f-\u76f4\u8fbe &#xff08;\u6b22\u8fce\u70b9\u8d5e\u7559\u8a00\u63a2\u8ba8&#xff0c;\u66f4\u591a\u4eba\u52a0\u5165\u8fdb\u6765\u80fd\u66f4\u52a0\u5b8c\u5584\u8fd9\u4e2a\u63a2\u7d22\u7684\u8fc7\u7a0b&#xff0c;&#x1f64f;&#xff09;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb330\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ee5Unity URP\u4e3a\u4f8b\uff0c\u8be6\u7ec6\u89e3\u6790\u4e86\u4eceNDC\u5750\u6807\u5230\u5c4f\u5e55\u7a7a\u95f4\u7684\u89c6\u53e3\u53d8\u6362\u8fc7\u7a0b\u3002\u91cd\u70b9\u4ecb\u7ecd\u4e86NDC\u5750\u6807\u8303\u56f4\uff08x,y\u8f74[-1,1]\uff0cz\u8f74[0,1]\uff09\u4ee5\u53ca\u5c4f\u5e55\u6620\u5c04\u516c\u5f0f\uff0c\u5305\u62ecy\u8f74\u53cd\u8f6c\u5904\u7406\u3002\u901a\u8fc71920\u00d71080\u5206\u8fa8\u7387\u7684\u5b9e\u9645\u6848\u4f8b\uff0c\u6f14\u793a\u4e86NDC\u5750\u6807(0,0,0.5)\u5982\u4f55\u6620\u5c04\u5230\u5c4f\u5e55\u4e2d\u592e(960,540)\u3002\u540c\u65f6\u6982\u8ff0\u4e86\u51e0\u4f55\u9636\u6bb5\u7684\u5b8c\u6574\u6d41\u7a0b\uff0c\u5305\u62ec\u9876\u70b9\u7740\u8272\u5668\u3001\u66f2\u9762\u7ec6\u5206\u3001\u51e0\u4f55\u7740\u8272\u5668\u3001\u56fe\u5143\u88c5\u914d\u3001\u89c6\u9525\u4f53\u88c1\u526a\u7b49\u6b65\u9aa4\uff0c\u5e76\u4ee5\u5177\u4f53\u6570\u503c\u793a\u4f8b\u8bf4\u660e\u5750\u6807\u53d8\u6362\u8fc7\u7a0b\u3002\u6587\u7ae0\u8fd8\u63d0\u53ca\u89c6\u53e3\u8c03\u6574\u3001\u7cbe\u5ea6\u5f71\u54cd\u7b49\u6280\u672f\u7ec6\u8282\uff0c\u4e3a\u6e38\u620f\u6e32\u67d3\u7ba1\u7ebf\u7814\u7a76\u63d0\u4f9b\u4e86\u5b9e\u7528\u53c2\u8003\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5321,183,5320,5319,3244,5322],"topic":[],"class_list":["post-52832","post","type-post","status-publish","format-standard","hentry","category-server","tag-shader","tag-unity","tag-urp","tag-unityurp","tag-3244","tag-5322"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/52832.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb330\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ee5Unity URP\u4e3a\u4f8b\uff0c\u8be6\u7ec6\u89e3\u6790\u4e86\u4eceNDC\u5750\u6807\u5230\u5c4f\u5e55\u7a7a\u95f4\u7684\u89c6\u53e3\u53d8\u6362\u8fc7\u7a0b\u3002\u91cd\u70b9\u4ecb\u7ecd\u4e86NDC\u5750\u6807\u8303\u56f4\uff08x,y\u8f74[-1,1]\uff0cz\u8f74[0,1]\uff09\u4ee5\u53ca\u5c4f\u5e55\u6620\u5c04\u516c\u5f0f\uff0c\u5305\u62ecy\u8f74\u53cd\u8f6c\u5904\u7406\u3002\u901a\u8fc71920\u00d71080\u5206\u8fa8\u7387\u7684\u5b9e\u9645\u6848\u4f8b\uff0c\u6f14\u793a\u4e86NDC\u5750\u6807(0,0,0.5)\u5982\u4f55\u6620\u5c04\u5230\u5c4f\u5e55\u4e2d\u592e(960,540)\u3002\u540c\u65f6\u6982\u8ff0\u4e86\u51e0\u4f55\u9636\u6bb5\u7684\u5b8c\u6574\u6d41\u7a0b\uff0c\u5305\u62ec\u9876\u70b9\u7740\u8272\u5668\u3001\u66f2\u9762\u7ec6\u5206\u3001\u51e0\u4f55\u7740\u8272\u5668\u3001\u56fe\u5143\u88c5\u914d\u3001\u89c6\u9525\u4f53\u88c1\u526a\u7b49\u6b65\u9aa4\uff0c\u5e76\u4ee5\u5177\u4f53\u6570\u503c\u793a\u4f8b\u8bf4\u660e\u5750\u6807\u53d8\u6362\u8fc7\u7a0b\u3002\u6587\u7ae0\u8fd8\u63d0\u53ca\u89c6\u53e3\u8c03\u6574\u3001\u7cbe\u5ea6\u5f71\u54cd\u7b49\u6280\u672f\u7ec6\u8282\uff0c\u4e3a\u6e38\u620f\u6e32\u67d3\u7ba1\u7ebf\u7814\u7a76\u63d0\u4f9b\u4e86\u5b9e\u7528\u53c2\u8003\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/52832.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T12:09:15+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52832.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/52832.html\",\"name\":\"\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T12:09:15+00:00\",\"dateModified\":\"2025-08-11T12:09:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/52832.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/52832.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52832.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/52832.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb330\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ee5Unity URP\u4e3a\u4f8b\uff0c\u8be6\u7ec6\u89e3\u6790\u4e86\u4eceNDC\u5750\u6807\u5230\u5c4f\u5e55\u7a7a\u95f4\u7684\u89c6\u53e3\u53d8\u6362\u8fc7\u7a0b\u3002\u91cd\u70b9\u4ecb\u7ecd\u4e86NDC\u5750\u6807\u8303\u56f4\uff08x,y\u8f74[-1,1]\uff0cz\u8f74[0,1]\uff09\u4ee5\u53ca\u5c4f\u5e55\u6620\u5c04\u516c\u5f0f\uff0c\u5305\u62ecy\u8f74\u53cd\u8f6c\u5904\u7406\u3002\u901a\u8fc71920\u00d71080\u5206\u8fa8\u7387\u7684\u5b9e\u9645\u6848\u4f8b\uff0c\u6f14\u793a\u4e86NDC\u5750\u6807(0,0,0.5)\u5982\u4f55\u6620\u5c04\u5230\u5c4f\u5e55\u4e2d\u592e(960,540)\u3002\u540c\u65f6\u6982\u8ff0\u4e86\u51e0\u4f55\u9636\u6bb5\u7684\u5b8c\u6574\u6d41\u7a0b\uff0c\u5305\u62ec\u9876\u70b9\u7740\u8272\u5668\u3001\u66f2\u9762\u7ec6\u5206\u3001\u51e0\u4f55\u7740\u8272\u5668\u3001\u56fe\u5143\u88c5\u914d\u3001\u89c6\u9525\u4f53\u88c1\u526a\u7b49\u6b65\u9aa4\uff0c\u5e76\u4ee5\u5177\u4f53\u6570\u503c\u793a\u4f8b\u8bf4\u660e\u5750\u6807\u53d8\u6362\u8fc7\u7a0b\u3002\u6587\u7ae0\u8fd8\u63d0\u53ca\u89c6\u53e3\u8c03\u6574\u3001\u7cbe\u5ea6\u5f71\u54cd\u7b49\u6280\u672f\u7ec6\u8282\uff0c\u4e3a\u6e38\u620f\u6e32\u67d3\u7ba1\u7ebf\u7814\u7a76\u63d0\u4f9b\u4e86\u5b9e\u7528\u53c2\u8003\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/52832.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T12:09:15+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/52832.html","url":"https:\/\/www.wsisp.com\/helps\/52832.html","name":"\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T12:09:15+00:00","dateModified":"2025-08-11T12:09:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/52832.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/52832.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/52832.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u6e32\u67d3\u6d41\u6c34\u7ebf\u3011[\u51e0\u4f55\u9636\u6bb5]-[\u5c4f\u5e55\u6620\u5c04]\u4ee5UnityURP\u4e3a\u4f8b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=52832"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52832\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=52832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=52832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=52832"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=52832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}