{"id":96719,"date":"2020-04-23T20:04:26","date_gmt":"2020-04-23T12:04:26","guid":{"rendered":"http:\/\/4563.org\/?p=96719"},"modified":"2020-04-23T20:04:26","modified_gmt":"2020-04-23T12:04:26","slug":"hdrp-pbr-lit-shader%ef%bc%88%e4%b8%80-%e5%9f%ba%e7%a1%80%e7%94%a8%e6%b3%95%e7%af%87%ef%bc%89","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=96719","title":{"rendered":"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  [HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : unn <\/span>  <span><i><\/i> 69<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u672c\u6587\u8f6c\u81ea Unity Connect \u535a\u4e3b \u6a31\u82b1\u5154<\/p>\n<p>\u501f\u52a9\u8fd9\u9ed8\u8ba4\u7684 HDRP Shader\uff0c\u5c0f\u4f19\u4f34\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5728 HDRP \u4e2d\u521b\u5efa\u903c\u771f\u7684\u7269\u7406\u6750\u8d28\u3002\u5b83\u5305\u62ec\u4e00\u4e9b\u6548\u679c\u9009\u9879\uff0c\u4f8b\u5982\u6b21\u8868\u9762\u6563\u5c04\uff0c\u8679\u5f69\uff0c\u9876\u70b9\u6216\u50cf\u7d20\u4f4d\u79fb\u7b49\u5404\u79cd\u8868\u73b0\u6548\u679c\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec535e693c55.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4eca\u5929\u5462\uff0c\u4e3b\u8981\u5206\u4eab\u4e00\u4e0b HDRP \u81ea\u5e26\u7684\u4e09\u79cd Shader Types\uff1aShader types \uff08\u7740\u8272\u5668\u7c7b\u578b\uff09<\/p>\n<ul>\n<li>\n<p>Lit \uff08\u9ed8\u8ba4\u7740\u8272\u5668\uff09\uff1a\u57fa\u7840\u7684 PBR \u7740\u8272\u5668\uff0c\u53ef\u6539\u53d8\u6750\u8d28\u7c7b\u578b\uff0c\u6765\u5b9e\u73b0\u4efb\u4f55\u60f3\u8981\u7684\u6750\u8d28\u611f\u89c9\u3002<\/p>\n<\/li>\n<li>\n<p>Layered Lit \uff08\u5206\u5c42\u7740\u8272\u5668\uff09\uff1a\u901a\u8fc7\u4e00\u5f20 Mask \u56fe\uff0c\u53ef\u5c06 Lit \u6750\u8d28\u6700\u591a\u5206\u6210\u56db\u4e2a\u901a\u9053\uff0c\u5e76\u8d4b\u4e88\u4e0d\u540c\u7684 Lit \u6750\u8d28\uff08\u9700\u8981\u6750\u8d28\u7c7b\u578b\u76f8\u540c\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>LitTessellation \uff08\u66f2\u9762\u7ec6\u5206\u7740\u8272\u5668\uff09\uff1a\u901a\u8fc7\u4e00\u5f20 Hight map \u53ef\u6539\u53d8 Lit \u8d4b\u4e88\u540e\u7684\u8868\u9762\uff0c\u6240\u751f\u6210\u7684\u8868\u9762\u5c31\u4f1a\u8868\u73b0\u51fa\u9ad8\u5ea6\u8d34\u56fe\u4e2d\u6240\u7f16\u7801\u7684\u9ad8\u5ea6\u4fe1\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u8981\u521b\u5efa\u65b0\u7684 Lit Material\uff0c\u5728\u5f15\u64ce\u7684\u5bfc\u822a\u680f\u4e2d\u627e\u5230 Asset \u7a97\u53e3\uff0c\u53f3\u952e\u5355\u51fb\u8be5\u7a97\u53e3\uff0c\u7136\u540e\u9009\u62e9 Create&gt; Material\u3002\u8fd9\u4f1a\u5c06\u65b0\u7684\u6750\u8d28\u6dfb\u52a0\u5230 Unity \u9879\u76ee\u7684 Asset \u6587\u4ef6\u5939\u4e2d\u3002\u5f53\u4f60\u5728 HDRP \u4e2d\u521b\u5efa\u65b0\u6750\u8d28\u65f6\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5b83\u4eec\u5c06\u4f7f\u7528 Lit Shader\u3002\u60f3\u8981\u6362\u6210\u5176\u4ed6\u7684\u5462\uff0c\u5b83\u4eec\u5462\uff0c\u90fd\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\u201c HDRP\/ \u201d\u4e0b\u3002 \u5bf9\u4e86\uff0c\u6709\u522b\u7684\u95ee\u9898\u7684\u8bdd\uff0c\u53ef\u4ee5\u770b\u4e0b\u6211\u4e4b\u524d\u5199\u7684\u6587\u7ae0\u54e6~ HDRP \u7684\u8d34\u56fe\u901a\u9053\u7ec6\u8282\u53ef\u4ee5\u770b\u8fd9\u91cc\uff1a\u5395\u6240\u5de5\u7a0b HDRP \u540e\u671f Volume \u4ecb\u7ecd\u53ef\u4ee5\u770b\u8fd9\u91cc\uff1aVolume Surface types \uff08\u8868\u9762\u7c7b\u578b\uff09<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec535f24c308.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>Tyes \u7684 HDRP \u624b\u518c\u6587\u6863\uff1aTypes<\/p>\n<ul>\n<li>\n<p>Opaque(\u4e0d\u900f\u660e)\uff1a\u7528\u4e8e\u5236\u4f5c\u6ca1\u6709\u5149\u7a7f\u900f\u7684\u5b8c\u5168\u56fa\u6001\u7684\u6750\u6599\u3002<\/p>\n<\/li>\n<li>\n<p>Transparent \uff08\u900f\u660e\uff09\uff1a\u7528\u4e8e\u5236\u4f5c\u5149\u53ef\u4ee5\u7a7f\u900f\u7684\u534a\u900f\u660e\u6750\u6599\uff0c\u4f8b\u5982\u900f\u660e\u7684\u5851\u6599\u6216\u73bb\u7483\u3002\u9009\u62e9\u201cTransparent\u201d\u53ef\u5728\u201c Surface Options\u201d\u90e8\u5206\u4ee5\u53ca\u201c Transparency Inputs\u201d\u90e8\u5206\u4e2d\u663e\u793a\u66f4\u591a\u5c5e\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<p>Material types \uff08\u6750\u8d28\u7c7b\u578b\uff09<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec535fd1568a.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>Types \u7684 HDRP \u624b\u518c\u6587\u6863\uff1aTypes<\/p>\n<ul>\n<li>\n<p>Standard \uff08\u6807\u51c6\uff09\uff1a\u7528\u4e8e\u5236\u4f5c\u57fa\u7840\u7684\u91d1\u5c5e\u7740\u8272\u5668\u5de5\u4f5c\u6d41\u7a0b\u7684\u6750\u6599\uff0c\u8fd9\u662f\u9ed8\u8ba4\u7684\u201c \u6750\u6599\u7c7b\u578b\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>Anisotropy \uff08\u5404\u5411\u5f02\u6027\uff09\uff1a\u7528\u6765\u5236\u4f5c\u90a3\u4e9b\u5728\u4e0d\u540c\u89d2\u5ea6\u89c2\u5bdf\u9ad8\u5149\u4f1a\u4ea7\u751f\u53d8\u5316\u7684\u6750\u6599\u3002\u5f53\u60a8\u4ece\u4e0d\u540c\u89d2\u5ea6\u67e5\u770b\u201c\u6750\u8d28\u201d\u65f6\uff0c\u5404\u5411\u5f02\u6027\u8868\u9762\u7684\u9ad8\u5149\u4f1a\u6539\u53d8\u5916\u89c2\u3002<\/p>\n<\/li>\n<li>\n<p>Iridescence \uff08\u5f69\u8679\u8272\uff09\uff1a\u7528\u6765\u5236\u4f5c\u90a3\u4e9b\u5728\u4e0d\u540c\u89d2\u5ea6\u89c2\u5bdf\u989c\u8272\u4f1a\u4ea7\u751f\u53d8\u5316\u7684\u6750\u6599\u3002<\/p>\n<\/li>\n<li>\n<p>Specular Color \uff08\u955c\u9762\u989c\u8272\uff09\uff1a\u7528\u6765\u5236\u4f5c\u90a3\u4e9b\u60f3\u8981\u62e5\u6709\u7279\u5b9a\u989c\u8272\u9ad8\u5149\u7684\u6750\u6599\u6216\u8005\u662f\u7eaf\u955c\u9762\u7740\u8272\u7684\u6750\u6599\u3002<\/p>\n<\/li>\n<li>\n<p>Subsurface Scattering \uff08\u6b21\u8868\u9762\u6563\u5c04\uff09\uff1a\u7528\u6765\u5236\u4f5c\u90a3\u4e9b\u53ef\u6a21\u62df\u5149\u4ea4\u4e92\u548c\u6563\u5c04\u7684\u534a\u900f\u660e\u6750\u6599\u3002<\/p>\n<\/li>\n<li>\n<p>Translucent \uff08\u534a\u900f\u660e\uff09\uff1a\u7528\u6765\u5236\u4f5c\u90a3\u4e9b\u534a\u900f\u660e\u7684\u6750\u6599\uff0c\u4e0e\u6b21\u8868\u9762\u6563\u5c04\u6750\u6599\u76f8\u6bd4\uff0c\u534a\u900f\u660e\u6750\u6599\u4e0d\u4f1a\u6a21\u7cca\u900f\u5c04\u901a\u8fc7\u8be5\u6750\u6599\u7684\u5149\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5728\u5236\u4f5c\u4e4b\u524d\u5462\uff0c\u6211\u4eec\u5148\u6765\u4e86\u89e3\u4e00\u4e0b\u83f2\u6d85\u5c14\u6548\u5e94\uff08 Fresnel effect \uff09\uff0c\u56e0\u4e3a\u5b83\u662f\u4f5c\u4e3a\u57fa\u4e8e\u7269\u7406\u7684\u6e32\u67d3\u7406\u5ff5\u4e2d\u7684\u6838\u5fc3\u7406\u5ff5\u4e4b\u4e00\u3002 \u83f2\u6d85\u5c14\u6548\u5e94 Fresnel Effect \u57fa\u4e8e\u7269\u7406\u7684\u6e32\u67d3\u7684\u6838\u5fc3\u7406\u5ff5\u4e4b\u4e00\u662f\u91c7\u7528\u57fa\u4e8e\u771f\u5b9e\u4e16\u754c\u6d4b\u91cf\u7684\u6750\u8d28\u5149\u5b66\u53c2\u6570\u3002 \u7531\u4e8e\u5149\u7531\u7535\u78c1\u6ce2\u7ec4\u6210\uff0c\u56e0\u6b64\uff0c\u7269\u8d28\u7684\u5149\u5b66\u7279\u6027\u4e0e\u5176\u5bfc\u7535\u7279\u6027\u5bc6\u5207\u76f8\u5173\u3002\u6211\u4eec\u901a\u5e38\u628a\u5bfc\u7535\u6027\u8f83\u5dee\u7684\u6750\u8d28\uff0c\u5982\u7164\u3001\u4eba\u5de5\u6676\u4f53\u3001\u7425\u73c0\u3001\u9676\u74f7\u7b49\u79f0\u4e3a\u7edd\u7f18\u4f53\u3002\u800c\u628a\u5bfc\u7535\u6027\u6bd4\u8f83\u597d\u7684\u91d1\u5c5e\u5982\u91d1\u3001\u94f6\u3001\u94dc\u3001\u94c1\u3001\u9521\u3001\u94dd\u7b49\u79f0\u4e3a\u5bfc\u4f53\u3002\u4ee5\u53ca\u5c06\u5bfc\u7535\u6027\u8d28\u4ecb\u4e8e\u5bfc\u4f53\u548c\u7edd\u7f18\u4f53\u4e4b\u95f4\u7684\u6750\u8d28\u79f0\u4e3a\u534a\u5bfc\u4f53\u3002 \u5373\u6839\u636e\u5bfc\u7535\u7279\u6027\uff0c\u53ef\u5c06\u73b0\u5b9e\u751f\u6d3b\u4e2d\u7684\u7269\u8d28\u5206\u4e3a\u4e09\u4e2a\u4e3b\u8981\u5149\u5b66\u7c7b\u522b\uff1a<\/p>\n<ul>\n<li>\n<p>\u91d1\u5c5e\uff08 metals \uff09<\/p>\n<\/li>\n<li>\n<p>\u7535\u4ecb\u8d28\uff08 dielectrics \uff09<\/p>\n<\/li>\n<li>\n<p>\u534a\u5bfc\u4f53\uff08 semiconductors \uff09<\/p>\n<\/li>\n<\/ul>\n<p>\u83f2\u6d85\u5c14\u6548\u5e94\uff0c\u8868\u793a\u7684\u662f\u770b\u5230\u7684\u5149\u7ebf\u7684\u53cd\u5c04\u7387\u4e0e\u89c6\u89d2\u76f8\u5173\u7684\u73b0\u8c61\uff0c\u7531\u6cd5\u56fd\u7269\u7406\u5b66\u5bb6\u5965\u53e4\u65af\u4e01.\u83f2\u6d85\u5c14\u7387\u5148\u53d1\u73b0\u3002\u5176\u5177\u4f53\u8868\u73b0\u662f\u5728\u63a0\u5c04\u89d2\uff08\u4e0e\u6cd5\u7ebf\u5448\u63a5\u8fd1 90 \u5ea6\uff09\u4e0b\u5149\u7684\u53cd\u5c04\u7387\u4f1a\u589e\u52a0\u3002\u800c\u4e0a\u8ff0\u7684\u53cd\u5c04\u7387\uff0c\u4fbf\u88ab\u79f0\u4e3a\u83f2\u6d85\u5c14\u53cd\u5c04\u7387\u3002\u5982\u4e0b\u56fe\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5360947830.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536181a846.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6211\u4eec\u5728\u5b8f\u89c2\u5c42\u9762\u770b\u5230\u7684\u83f2\u6d85\u5c14\u6548\u5e94\u5b9e\u9645\u4e0a\u662f\u5fae\u89c2\u5c42\u9762\u5fae\u5e73\u9762\u83f2\u6d85\u5c14\u6548\u5e94\u7684\u5e73\u5747\u503c\u3002 \u4e5f\u5c31\u662f\u8bf4\uff0c\u5f71\u54cd\u83f2\u6d85\u5c14\u6548\u5e94\u7684\u5173\u952e\u53c2\u6570\u5728\u4e8e\u6bcf\u4e2a\u5fae\u5e73\u9762\u7684\u6cd5\u5411\u91cf\u548c\u5165\u5c04\u5149\u7ebf\u7684\u89d2\u5ea6\uff0c\u800c\u4e0d\u662f\u5b8f\u89c2\u5e73\u9762\u7684\u6cd5\u5411\u91cf\u548c\u5165\u5c04\u5149\u7ebf\u7684\u89d2\u5ea6\u3002\u5373\uff1a<\/p>\n<ul>\n<li>\n<p>\u5f53\u4ece\u63a5\u8fd1\u5e73\u884c\u4e8e\u8868\u9762\u7684\u89c6\u7ebf\u65b9\u5411\u8fdb\u884c\u89c2\u5bdf\uff0c\u6240\u6709\u5149\u6ed1\u8868\u9762\u90fd\u4f1a\u53d8\u5f97 100%\u7684\u53cd\u5c04\u6027\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bf9\u4e8e\u7c97\u7cd9\u8868\u9762\u6765\u8bf4\uff0c\u5728\u63a5\u8fd1\u5e73\u884c\u65b9\u5411\u7684\u9ad8\u5149\u53cd\u5c04\u4e5f\u4f1a\u589e\u5f3a\uff0c\u4f46\u4e0d\u591f\u8fbe\u5230 100%\u7684\u5f3a\u5ea6\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u4e0d\u540c\u6750\u8d28\u7684\u83f2\u6d85\u5c14\u6548\u5e94\u7684\u5f3a\u5f31\u662f\u4e0d\u540c\u7684\uff0c\u5bfc\u4f53(\u5982\u91d1\u5c5e)\u7684\u83f2\u6d85\u5c14\u6548\u5e94\u4e00\u822c\u5f88\u5f31\uff0c\u4e3b\u8981\u662f\u56e0\u4e3a\u5bfc\u4f53\u672c\u8eab\u7684\u53cd\u5c04\u7387\u5c31\u5df2\u7ecf\u5f88\u5f3a\u3002\u5c31\u62ff\u94dd\u6765\u8bf4\uff0c\u5176\u53cd\u5c04\u7387\u5728\u6240\u6709\u89d2\u5ea6\u4e0b\u51e0\u4e4e\u90fd\u4fdd\u6301 86%\u4ee5\u4e0a\uff0c\u968f\u89d2\u5ea6\u53d8\u5316\u5f88\u5c0f\uff0c\u800c\u7edd\u7f18\u4f53\u6750\u8d28\u7684\u83f2\u6d85\u5c14\u6548\u5e94\u5c31\u5f88\u660e\u663e\uff0c\u6bd4\u5982\u6298\u5c04\u7387\u4e3a 1.5 \u7684\u73bb\u7483\uff0c\u5728\u8868\u9762\u6cd5\u5411\u91cf\u65b9\u5411\u7684\u53cd\u5c04\u7387\u4ec5\u4e3a 4%\uff0c\u4f46\u5f53\u89c6\u7ebf\u4e0e\u8868\u9762\u6cd5\u5411\u91cf\u5939\u89d2\u5f88\u5927\u7684\u65f6\u5019\uff0c\u53cd\u5c04\u7387\u53ef\u4ee5\u63a5\u8fd1 100%\uff0c\u8fd9\u4e00\u73b0\u8c61\u4e5f\u5bfc\u81f4\u4e86\u91d1\u5c5e\u4e0e\u975e\u91d1\u5c5e\u5916\u89c2\u4e0a\u7684\u4e0d\u540c\u3002 \u5f53\u5149\u7ebf\u5782\u76f4\uff08\u4ee5 0 \u5ea6\u89d2\uff09\u649e\u51fb\u8868\u9762\u65f6\uff0c\u8be5\u5149\u7ebf\u88ab\u53cd\u5c04\uff08 Reflected \uff09\u4e3a\u955c\u9762\u53cd\u5c04\u5149\u7684\u6bd4\u7387\u88ab\u79f0\u4e3a F0\u3002\u5373 F0 \u4e3a 0 \u5ea6\u89d2\u5165\u5c04\u65f6\u7684\u83f2\u6d85\u5c14\u53cd\u5c04\u7387\u3002\u800c\u6298\u5c04\uff08 refracted \uff09\u5230\u8868\u9762\u4e2d\u7684\u5149\u91cf\u5219\u4e3a\u4e3a 1-F0\u3002\u5982\u4e0b\u56fe\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536273d91c.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u5bf9\u4e8e\u5149\u6ed1\u7684\u7535\u4ecb\u8d28\u8868\u9762\uff0c\u5728 0 \u5ea6\u89d2\u5165\u5c04\uff08 F0 \uff09\u5c06\u53cd\u5c04 2-5 \uff05\u7684\u5149\uff0c\u5728\u63a0\u5c04\u89d2\u5165\u5c04\u4e0b\u5c06\u53cd\u5c04 100 \uff05\u7684\u5149\u3002 \u5927\u591a\u6570\u5e38\u89c1\u7535\u4ecb\u8d28\u7684 F0 \u8303\u56f4\u4e3a 0.02-0.05 \uff08\u7ebf\u6027\u503c\uff09\u3002\u5bf9\u4e8e\u5bfc\u4f53\uff0cF0 \u8303\u56f4\u4e3a 0.5-1.0\u3002 \u4e3a\u4e86\u65b9\u4fbf\u521b\u4f5c\u5462\uff0c\u53ef\u53c2\u8003\u5982\u4e0b\u7684 PBR \u6750\u8d28 F0 \u53cd\u5c04\u7387\u901f\u67e5\u56fe\u8868\uff0c\u5176\u4e2d\u5206\u522b\u5bf9\u5e38\u89c1\u6750\u8d28\u7684\u7ebf\u6027\u503c\uff0csRGB \u503c\u548c\u53c2\u8003\u989c\u8272\u8fdb\u884c\u4e86\u5217\u4e3e\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53635d7e3e.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u597d\u4e86\uff0c\u73b0\u5728\u5462\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u57fa\u7840\u7684\u8868\u9762\u7c7b\u578b\u548c\u6750\u8d28\u7c7b\u578b\uff0c\u4ee5\u53ca\u7269\u7406\u7684\u6750\u8d28\u89e3\u6790\u4e4b\u540e\u5462\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5236\u4f5c\u4e86\uff0c\u8fd9\u91cc\u5462\uff0c\u6211\u505a\u4e86\u51e0\u4e2a\u6750\u8d28\u7684\u793a\u4f8b\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003\u4e00\u4e0b~<\/p>\n<ul>\n<li>\n<p>\u6728\u677f<\/p>\n<\/li>\n<li>\n<p>\u91d1\u5c5e<\/p>\n<\/li>\n<li>\n<p>\u629b\u5149\u91d1\u5c5e<\/p>\n<\/li>\n<li>\n<p>\u76ae\u80a4<\/p>\n<\/li>\n<li>\n<p>\u900f\u660e\u5851\u6599<\/p>\n<\/li>\n<li>\n<p>\u6ce5\u571f\u6c99\u77f3<\/p>\n<\/li>\n<li>\n<p>\u7535\u9540<\/p>\n<\/li>\n<li>\n<p>\u5e03\u6599<\/p>\n<\/li>\n<li>\n<p>\u7ed2\u6bdb<\/p>\n<\/li>\n<li>\n<p>\u5206\u5c42\u6750\u8d28<\/p>\n<\/li>\n<li>\n<p>\u5206\u5c42 Planar<\/p>\n<\/li>\n<\/ul>\n<p>\u2014 \u6728\u677f \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53645b44fb.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53655def20.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLit\u201d \u7535\u4ecb\u8d28\u5177\u6709\u76f8\u5f53\u4f4e\u7684 F0 \u503c &#8211; \u901a\u5e38\u4e3a 0.06 \u6216\u66f4\u4f4e\u3002\u5728\u5782\u76f4\u5165\u5c04\u65f6\u7684\u8fd9\u79cd\u4f4e\u53cd\u5c04\u7387\u4f7f\u5f97\u83f2\u6d85\u5c14\u6548\u5e94\u5bf9\u4e8e\u7535\u4ecb\u8d28\u5c24\u5176\u660e\u663e\u3002\u7535\u4ecb\u8d28\u7684\u5149\u5b66\u6027\u8d28\u5728\u53ef\u89c1\u5149\u8c31\u4e0a\u5f88\u5c11\u53d8\u5316\u5f88\u5927\uff0c\u5bfc\u81f4\u65e0\u8272\u53cd\u5c04\u7387\u503c\u3002 \u8fd9\u4e2a\u6728\u5934\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u6728\u5934\u7684 Surface types \u662f Opaque \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u5c31\u9009\u9ed8\u8ba4\u7684 Standard\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53665159cf.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u91d1\u5c5e \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536717ce09.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536831ad99.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLitTessellation\u201d \u91d1\u5c5e\u5177\u6709\u9ad8\u7684 F0 \u503c &#8211; \u51e0\u4e4e\u603b\u662f 0.5 \u6216\u66f4\u9ad8\u3002\u4e00\u4e9b\u91d1\u5c5e\u5177\u6709\u5728\u53ef\u89c1\u5149\u8c31\u8303\u56f4\u5185\u53d8\u5316\u7684\u5149\u5b66\u6027\u8d28\uff0c\u5bfc\u81f4\u4e86\u8fd9\u4e9b\u91d1\u5c5e\u6709\u8272\u7684\u83f2\u6d85\u5c14\u53cd\u5c04\u7387\u3002 \u8fd9\u4e2a\u94c1\u7403\u4e3a\u4e86\u5c06\u5b83\u8868\u9762\u7ec6\u8282\u4f53\u73b0\u7684\u66f4\u52a0\u53ef\u4fe1\uff0c\u6211\u5c06\u5b83\u8bbe\u4e3a\u4e86\u66f2\u9762\u7ec6\u5206\u7684 Lit\uff0c\u8fd9\u4e2a\u91d1\u5c5e\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u5b83\u7684 Surface types \u662f Opaque \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u5c31\u9009\u9ed8\u8ba4\u7684 Standard\uff0c\u5982\u679c\u9009\u62e9\u4e86\u66f2\u9762\u7ec6\u5206\u7684 shader \u7684\u8bdd\uff0c\u4f1a\u5728 Shader \u9762\u677f\u4e2d\u591a\u51fa\u4e00\u6761 Tessellation Options\uff0c\u6765\u8bbe\u7f6e\u66f2\u9762\u7ec6\u5206\u7684\u7ec6\u8282\uff0c\u8fd9\u91cc\u5c31\u5148\u4e0d\u591a\u505a\u4ecb\u7ecd\u4e86\u3002 \u7136\u540e\u5728 Surface Inputs \u4f1a\u591a\u4e00\u9879 Height Map \u7684\u63a5\u53e3\uff0c\u4ee5\u53ca\u7ec6\u5206\u9ad8\u5ea6\u53c2\u6570\u7684\u8bbe\u7f6e\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5369113ba7.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u629b\u5149\u91d1\u5c5e \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5369f54534.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536ada547c.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLit\u201d \u8fd9\u4e2a\u629b\u5149\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u5b83\u7684 Surface types \u662f Opaque \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u9009\u62e9\u5230 Specular Color\u3002 \u4e3a\u4e86\u5448\u73b0\u51fa\u955c\u9762\u629b\u5149\u7684\u611f\u89c9\u5462\uff0c\u6211\u5c06 Smoothness \u503c\u8c03\u6574\u5230\u4e86 1\uff0c\u5982\u679c\u662f Specular Color \u7684\u6750\u8d28\u7c7b\u578b\u7684\u8bdd\uff0c\u4f1a\u5728 shader \u7684 Surface Inputs \u4e2d\u591a\u51fa\u4e00\u884c Specular \u7684\u8d34\u56fe\u8bbe\u7f6e\u4ee5\u53ca\u989c\u8272\u8bbe\u7f6e\u3002 \u629b\u5149\u91d1\u5c5e\u4f1a\u7acb\u5373\u5438\u6536\u4efb\u4f55\u900f\u5c04\u5149\uff0c\u56e0\u6b64\u5b83\u4eec\u4e0d\u4f1a\u51fa\u73b0\u4efb\u4f55\u6b21\u8868\u9762\u6563\u5c04\u6216\u900f\u660e\u611f\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536ba71b19.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u76ae\u80a4 \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536c83efce.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536d8ce345.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLitTessellation\u201d \u8fd9\u4e2a\u76ae\u80a4\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u5b83\u7684 Surface types \u662f Opaque \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u9009\u62e9\u5230 Subsurface Scattering\u3002 \u4e4b\u540e\u4f1a\u5728 Surface Inputs \u4f1a\u591a\u4e00\u9879 Diffusion Profile \uff08\u6269\u6563\u66f2\u7ebf\uff09\u7684\u914d\u7f6e\u6587\u4ef6\u8c03\u7528\u63a5\u53e3\uff0c\u5982\u679c\u4f60\u60f3\u521b\u5efa Diffusion Profile\uff0c\u53ef\u4ee5\u5728 Assets &gt; Create &gt; Rendering &gt; Diffusion Profile\uff0c\u9700\u8981\u4f7f\u7528\u7684\u8bdd\uff0c\u53ef\u4ee5\u6dfb\u52a0\u5230 HDRP \u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 Diffusion Profile List \u91cc\u9762\u3002 \u7136\u540e\u8fd8\u6709 Subsurface Mask \u8d34\u56fe\u4ee5\u53ca\u53c2\u6570\u63a5\u53e3\uff0c\u4ee5\u53ca Thickness \uff08\u539a\u5ea6\uff09\u53c2\u6570\u63a5\u53e3\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536e6424b5.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u900f\u660e\u5851\u6599 \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec536f3ac83d.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53700a9250.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLit\u201d \u8fd9\u4e2a\u5851\u6599\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u5b83\u7684 Surface types \u662f Transparent \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u9009\u62e9\u5230 Translucent\uff0cTranslucent \u4e0b\u7684 Lit Shader \u4f1a\u751f\u6210\u4e00\u7ec4 Refraction Inputs \u8bbe\u7f6e\uff0c\u5e76\u5c06\u5b83\u4e4b\u4e0b\u7684 Refraction Model \u5f00\u542f\uff0c\u5e76\u5c06\u6a21\u578b\u8bbe\u7f6e\u6210\u4e3a Sphere \uff08\u7403\u4f53\uff09\uff0c\u5f53\u5f00\u542f Refraction \u4e4b\u540e\uff0cSmoothness \u8d34\u56fe\u5c31\u5c06\u80fd\u63a7\u5236\u8fd9\u4e2a\u900f\u660e\u6750\u8d28\u7684\u53ef\u89c1\u5ea6\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53710cdb92.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u6ce5\u571f\u6c99\u77f3 \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53721b05b9.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5373067633.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLitTessellation\u201d \u8fd9\u4e2a\u77f3\u5934\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u77f3\u5934\u7684 Surface types \u662f Opaque \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u5c31\u9009\u9ed8\u8ba4\u7684 Standard\uff0c\u77f3\u5934\u7684\u8bbe\u7f6e\u548c\u6728\u6750\u662f\u4e00\u6837\u7684\uff0c\u4e0d\u8fc7\u4e3a\u4e86\u83b7\u5f97\u66f4\u52a0\u4e30\u5bcc\u7684\u7ec6\u8282\uff0c\u7528 Hight Map \u5c06\u57cb\u5728\u571f\u91cc\u7684\u5c0f\u77f3\u5b50\u903c\u771f\u7684\u523b\u753b\u51fa\u6765\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5373ce664a.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u7535\u9540 \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5374a538bd.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5375b4fdb8.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLitTessellation\u201d \u8fd9\u4e2a\u7535\u9540\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u5b83\u7684 Surface types \u662f Transparent \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u9009\u62e9\u5230 Iridescence\uff0cIridescence \u4e0b\u7684 Lit Shader \u4f1a\u751f\u6210\u4e00\u7ec4 Iridescence \u8bbe\u7f6e\uff0c\u5f69\u8679\u8272\u7684\u906e\u7f69\u8d34\u56fe\u548c\u53c2\u6570\u8c03\u8282\uff0c\u8fd8\u6709\u5c31\u662f\u5f69\u8679\u8272\u7684\u906e\u7f69\u539a\u5ea6\u548c\u53c2\u6570\u8c03\u8282\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53769c5ade.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u5e03\u6599 \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec53778a614b.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5378623a3f.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLit\u201d \u8fd9\u4e2a\u5e03\u6599\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u5b83\u7684 Surface types \u662f Opaque \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u9009\u62e9\u5230 Anisotropy\uff0cAnisotropy \u4e0b\u7684 Lit Shader \u4f1a\u5728 Surface Inputs \u4e0b\u751f\u6210\u4e00\u4e2a Tangent Map \uff08\u5207\u7ebf\u8d34\u56fe\uff09\u7684\u63a5\u53e3\u4ee5\u53ca Anisotropy \u53c2\u6570\u8bbe\u7f6e\u6761\u4ee5\u53ca Anisotropy \u8d34\u56fe\u63a5\u53e3\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec537942fd61.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u7ed2\u6bdb \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec537a4909c0.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec537b361260.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLitTessellation\u201d \u8fd9\u4e2a\u7ed2\u6bdb\u6750\u8d28\u7684\u5c5e\u6027\u5982\u4e0b\uff1a\u9996\u5148\u5b83\u7684 Surface types \u662f Opaque \u7684\uff0c\u7136\u540e\u5462\uff0c\u5b83\u7684 Material types \u9009\u62e9\u5230 Anisotropy\uff0c\u7136\u540e\u901a\u8fc7 Hight Map \u7684\u66f2\u9762\u7ec6\u5206\uff0c\u8ba9\u6750\u8d28\u6709\u7ed2\u6bdb\u7684\u611f\u89c9~\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec537c01f6f1.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u5206\u5c42\u6750\u8d28 \u2014<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec537d055016.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec537e0e723c.jpg\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u4e0a\u4f20\u89c6\u9891\u5c01\u9762<\/p>\n<p>\u200b<\/p>\n<p>\u597d\u7684\u6807\u9898\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u63a8\u8350\u53ca\u5173\u6ce8\u8005<\/p>\n<p>\u5728\u201c \u7740\u8272\u5668\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c HDRP\u201d&gt;\u201cLayeredLit\u201d \u5728\u4f7f\u7528 LayeredLit \u4e4b\u540e\uff0c\u4f1a\u6bd4 Lit \u591a\u4e00\u884c Layer \u76f8\u5173\u7684\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u5728 Layer Mask \u4e0a\u6dfb\u52a0\u4e00\u5f20\u6709 RGBA \u901a\u9053\u7684 Mask \u8d34\u56fe\uff0c\u5c06 Layer Count \u8bbe\u7f6e\u6210\u56db\u4e2a\u901a\u9053\uff0c\u8fd9\u6837\uff0cLayer List \u5c31\u4f1a\u51fa\u73b0 4 \u4e2a\u6750\u8d28\u7684\u63a5\u53e3\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u62d6\u5165\u5df2\u7ecf\u8bbe\u7f6e\u597d\u7684\u6750\u8d28\uff08\u4fee\u6539\u8fd9\u4e9b\u6750\u8d28\u7684\u53c2\u6570\u5e76\u4e0d\u4f1a\u5f71\u54cd\u539f\u6709\u7684\u8fd9\u4e9b\u6750\u8d28\uff09\uff0c\u6216\u8005\u76f4\u63a5\u5728\u4e0b\u9762\u56db\u4e2a Layer \u91cc\u9762\u8bbe\u7f6e\u4e5f\u53ef\u4ee5\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec537f1b79d9.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u8fd9\u662f\u6211\u5728\u4f7f\u7528\u7684\u8fd9\u5f20 MASK \u8d34\u56fe\uff0c\u663e\u793a\u5728 PS \u4e2d\u7684\u901a\u9053\u89c6\u56fe\uff0c\u8fd9\u6837\u770b\u5c31\u5f88\u6e05\u6670\u660e\u767d\u4e86\uff0c\u767d\u8272\u4ee3\u8868\u6bcf\u4e00\u4e2a\u901a\u9053\u7684\u663e\u793a\u533a\u57df\uff0c\u628a\u6240\u6709\u7684\u767d\u8272\u90e8\u5206\u7ec4\u5408\u5728\u4e00\u8d77\u65f6\u5019\uff0c\u5c31\u80fd\u6210\u4e3a\u4e00\u5f20\u5b8c\u6574\u7684\u8d34\u56fe\u3002HDRP \u5728 Main Layer \u4e4b\u4e0a\u6309\u987a\u5e8f\u6e32\u67d3\u7b2c 1 \u5c42\uff0c\u7b2c 2 \u5c42\u548c\u7b2c 3 \u5c42\uff0c\u901a\u8fc7 Layering Options \u91cc\u7684 Opacity \u4e5f\u53ef\u4ee5\u8ba9\u5c42\u7ea7\u4e4b\u95f4\u7684\u6750\u8d28\u76f8\u4e92\u6df7\u5408\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec5380181ee0.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u2014 \u5206\u5c42 Planar\u2014 \u8fd9\u662f Layered Lit \u7684\u62d3\u5c55\u529f\u80fd\uff0c\u5c06 Base UV Mapping \u8bbe\u7f6e\u4e3a Planar\uff0c\u5c06\u8d34\u56fe\u7684 World Scale \u8bbe\u7f6e\u4fdd\u6301\u548c\u5730\u5f62\u6216\u8005\u5176\u4ed6 Object \u7684\u8d34\u56fe\u4e00\u81f4\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u6bd4\u5982\uff0c\u5728\u505a\u5ba4\u5916\u573a\u666f\u7684\u65f6\u5019\uff0c\u6709\u6811\u6839\u6216\u8005\u77f3\u5757\u4ec0\u4e48\u7684\uff0c\u63d2\u5728\u5730\u5f62\u4e0a\u9762\u7684\u60c5\u51b5\u65f6\uff0c\u5c31\u80fd\u548c\u5730\u5f62 Terrain \u5b8c\u7f8e\u7684\u7ed3\u5408\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec538114c4d8.png\" alt=\"[HDRP] PBR Lit shader\uff08\u4e00.\u57fa\u7840\u7528\u6cd5\u7bc7\uff09\" \/><\/p>\n<p>\u597d\u4e86\uff0c\u8fd9\u6b21\u7684 Lit Shader \u7684\u57fa\u672c\u529f\u80fd\u4ecb\u7ecd\u5c31\u5230\u8fd9\u91cc\u5566~<\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/connect.unity.com\/p\/hdrp-pbr-lit-shader-yi-ji-chu-yong-fa-pian?app=true<\/p>\n<p>\u53d1\u73b0\u66f4\u591a\u5e72\u8d27\u8d44\u6e90\uff0c\u6b22\u8fce\u6233\u4e0a\u65b9\u94fe\u63a5\uff0c\u4e0b\u8f7d Unity \u5b98\u65b9 app!<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>[HDRP] PBR Lit sh&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/96719"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96719"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/96719\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96719"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}