{"id":2560,"date":"2022-01-10T17:02:28","date_gmt":"2022-01-10T09:02:28","guid":{"rendered":"http:\/\/www.u3d8.com\/?p=2560"},"modified":"2022-01-10T18:11:10","modified_gmt":"2022-01-10T10:11:10","slug":"unity%e7%90%86%e8%a7%a3hdr%ef%bc%88%e9%ab%98%e5%8a%a8%e6%80%81%e8%8c%83%e5%9b%b4%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.u3d8.com\/?p=2560","title":{"rendered":"Unity\u7406\u89e3HDR\uff08\u9ad8\u52a8\u6001\u8303\u56f4\uff09"},"content":{"rendered":"\n<p>HDR\u5168\u79f0Hight Dynamic Range<\/p>\n\n\n\n<h2>\u4f7f\u7528\u573a\u666f<\/h2>\n\n\n\n<p>\u4e00\u822c\u662f\u4e0e\u7ebf\u6027\u8272\u5f69\u7a7a\u95f4\u7ed3\u5408\u4f7f\u7528\uff0c\u4fdd\u6301\u8272\u5f69\u9c9c\u8273\u540c\u65f6\u4fdd\u8bc1\u51c6\u786e\u6027<\/p>\n\n\n\n<p>\u4e5f\u4f1a\u548c\u540e\u5904\u7406Bloom\uff08\u6cdb\u5149\uff09\u4e00\u540c\u4f7f\u7528\uff0c\u4fdd\u8bc1\u6cdb\u5149\u540e\u989c\u8272\u8272\u503c\u9ad8\u4e8e\u539f\u672c\u5149\u57df<\/p>\n\n\n\n<h2>LDR\uff08\u4f4e\u52a8\u6001\u8303\u56f4\uff09<\/h2>\n\n\n\n<p>\u5728\u6807\u51c6\u6e32\u67d3\u4e2d\uff0c\u50cf\u7d20\u7684\u7ea2\u8272\u3001\u7eff\u8272\u548c\u84dd\u8272\u503c\u5747\u4f7f\u7528\u4e00\u4e2a 0 \u5230 1 \u8303\u56f4\u5185\u7684 8 \u4f4d\u503c\u8fdb\u884c\u5b58\u50a8\uff0c\u5176\u4e2d 0 \u8868\u793a\u96f6\u5f3a\u5ea6\uff0c1 \u8868\u793a\u663e\u793a\u8bbe\u5907\u7684\u6700\u5927\u5f3a\u5ea6\u3002\u8fd9\u4e00\u6709\u9650\u7684\u6570\u503c\u8303\u56f4\u65e0\u6cd5\u51c6\u786e\u53cd\u6620\u6211\u4eec\u5728\u73b0\u5b9e\u751f\u6d3b\u4e2d\u5bf9\u5149\u7684\u611f\u77e5\u65b9\u5f0f\uff0c\u5e76\u4e14\u5f53\u5b58\u5728\u975e\u5e38\u4eae\u6216\u975e\u5e38\u6697\u7684\u5143\u7d20\u65f6\uff0c\u4f1a\u5bfc\u81f4\u56fe\u50cf\u4e0d\u771f\u5b9e\u3002<\/p>\n\n\n\n<h2>HDR\uff08\u9ad8\u52a8\u6001\u8303\u56f4\uff09<\/h2>\n\n\n\n<p>\u5728 Unity \u4e2d\uff0c\u53ef\u4ee5\u5c06 HDR \u56fe\u50cf\u7528\u4e8e\u5185\u90e8\u6e32\u67d3\u8ba1\u7b97\u3002\u6b64\u529f\u80fd\u79f0\u4e3a HDR \u6e32\u67d3\u3002\u542f\u7528 HDR \u6e32\u67d3\u540e\uff0cUnity \u4f1a\u5c06\u573a\u666f\u6e32\u67d3\u5230 HDR \u56fe\u50cf\u7f13\u51b2\u533a\uff0c\u5e76\u4f7f\u7528\u8be5 HDR \u56fe\u50cf\u6267\u884c\u6e32\u67d3\u64cd\u4f5c\uff0c\u4f8b\u5982\u540e\u671f\u5904\u7406\u6548\u679c\u3002\u8fd9\u610f\u5473\u7740\u4f7f\u7528\u5b9e\u9645\u503c\u6267\u884c\u8ba1\u7b97\uff0c\u56e0\u6b64\u53ef\u80fd\u4f1a\u4ea7\u751f\u66f4\u903c\u771f\u7684\u6548\u679c\u3002<\/p>\n\n\n\n<p>\u5728\u67d0\u4e9b\u517c\u5bb9\u5e73\u53f0\u4e0a\uff0cUnity \u652f\u6301\u5c06\u8be5 HDR \u56fe\u50cf\u53d1\u9001\u5230\u663e\u793a\u8bbe\u5907\u3002\u6b64\u529f\u80fd\u79f0\u4e3a HDR \u8f93\u51fa\u3002<\/p>\n\n\n\n<h4>Unity\u4e2dHDR\u6a21\u5f0f<\/h4>\n\n\n\n<ul><li>FP16\u6a21\u5f0f\u662fARGBHalf\uff0c\u6bcf\u4e2a\u901a\u905316bit\uff0c\u5e26Alpha\u901a\u9053\u3002<\/li><\/ul>\n\n\n\n<ul><li>R11G11B10\u6a21\u5f0f\u4e00\u4e2a\u50cf\u7d2032bit\uff0cR11bit\uff0cG11bit\uff0cB10bit\uff0c\u4e0d\u5e26Alpha\u901a\u9053\u3002<\/li><\/ul>\n\n\n\n<h4>\u4f7f\u7528 HDR \u7684\u4f18\u70b9<\/h4>\n\n\n\n<ul><li>\u5728\u9ad8\u5f3a\u5ea6\u533a\u57df\u4e0d\u4f1a\u4e22\u5931\u989c\u8272<\/li><li>\u66f4\u597d\u5730\u652f\u6301\u6cdb\u5149\u548c\u53d1\u5149\u6548\u679c<\/li><li>\u51cf\u5c11\u4f4e\u9891\u5149\u7167\u533a\u57df\u7684\u6761\u5e26<\/li><\/ul>\n\n\n\n<h4>\u4f7f\u7528 HDR \u7684\u7f3a\u70b9<\/h4>\n\n\n\n<ul><li>VRAM \u4f7f\u7528\u91cf\u589e\u52a0<\/li><li>\u8272\u8c03\u6620\u5c04\uff08\u5982\u679c\u4f7f\u7528\uff09\u4ea7\u751f\u989d\u5916\u7684\u8ba1\u7b97\u5f00\u9500<\/li><li>\u786c\u4ef6\u6297\u952f\u9f7f\u4e0d\u517c\u5bb9 HDR \u6e32\u67d3<\/li><\/ul>\n\n\n\n<h4>\u6ce8\u610f\u4e8b\u9879<\/h4>\n\n\n\n<ul><li>\u524d\u5411\u6e32\u67d3\uff1a\u5728\u524d\u5411\u6e32\u67d3\u6a21\u5f0f\u4e0b\uff0c\u4ec5\u5f53\u60a8\u5177\u6709\u540e\u671f\u5904\u7406\u6548\u679c\u65f6\u624d\u652f\u6301 HDR\u3002\u8fd9\u662f\u51fa\u4e8e\u6027\u80fd\u8003\u8651\u7684\u539f\u56e0\u3002\u5982\u679c\u60a8\u6ca1\u6709\u540e\u671f\u5904\u7406\u6548\u679c\uff0c\u5219\u4e0d\u5b58\u5728\u8272\u8c03\u6620\u5c04\uff0c\u5e76\u4e14\u5c06\u53d1\u751f\u5f3a\u5ea6\u622a\u65ad\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u573a\u666f\u5c06\u76f4\u63a5\u6e32\u67d3\u5230\u4e0d\u652f\u6301 HDR \u7684\u540e\u5907\u7f13\u51b2\u533a\u3002<\/li><li>\u5ef6\u8fdf\u6e32\u67d3\uff1a\u5728 HDR \u6a21\u5f0f\u4e0b\uff0c\u5149\u7167\u7f13\u51b2\u533a\u4e5f\u88ab\u5206\u914d\u4e3a\u6d6e\u70b9\u7f13\u51b2\u533a\u3002\u8fd9\u6837\u53ef\u51cf\u5c11\u5149\u7167\u7f13\u51b2\u533a\u4e2d\u7684\u6761\u5e26\u3002\u5373\u4f7f\u6ca1\u6709\u540e\u671f\u5904\u7406\u6548\u679c\uff0c\u5ef6\u8fdf\u6e32\u67d3\u4e5f\u652f\u6301 HDR\u3002<\/li><li>\u811a\u672c\uff1a\u53ef\u5411\u540e\u671f\u5904\u7406\u6548\u679c\u811a\u672c\u4e2d\u6dfb\u52a0 ImageEffectTransformsToLDR \u5c5e\u6027\u4ee5\u8868\u660e\u76ee\u6807\u7f13\u51b2\u533a\u5e94\u5728 LDR \u4e2d\uff0c\u800c\u975e\u5728 HDR \u4e2d\u3002\u4ece\u672c\u8d28\u4e0a\u8bb2\uff0c\u8fd9\u610f\u5473\u7740\u811a\u672c\u53ef\u4ee5\u5728\u5e94\u7528\u5176 HDR \u540e\u671f\u5904\u7406\u6548\u679c\u540e\u81ea\u52a8\u8f6c\u6362\u4e3a LDR\u3002\u6709\u5173\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u7f16\u5199\u540e\u671f\u5904\u7406\u6548\u679c\u3002<\/li><\/ul>\n\n\n\n<h4>\u5982\u4f55\u5f00\u542fHDR<\/h4>\n\n\n\n<p>PC\u5e73\u53f0\u81ea\u52a8\u5f00\u542f\uff0c\u5728Android\u548ciOS\u5e73\u53f0\u9700\u8981\u5728Graphics Setting\u7684TierSettings\u91cc\u624b\u52a8\u5f00\u542fUse HDR<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.u3d8.com\/wp-content\/uploads\/2022\/01\/Snipaste_2022-01-10_15-54-57.jpg\" data-lightbox=\"image_lg\"><img title=\"Unity\u7406\u89e3HDR\uff08\u9ad8\u52a8\u6001\u8303\u56f4\uff09 - \u7b2c1\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Unity\u7406\u89e3HDR\uff08\u9ad8\u52a8\u6001\u8303\u56f4\uff09 - \u7b2c1\u5f20  | u3d8\u6280\u672f\u5206\u4eab\"  loading=\"lazy\" width=\"600\" height=\"567\"  data-src=\"http:\/\/www.u3d8.com\/wp-content\/uploads\/2022\/01\/Snipaste_2022-01-10_15-54-57.jpg\" alt=\"\" class=\"wp-image-2561\" srcset=\"http:\/\/www.u3d8.com\/wp-content\/uploads\/2022\/01\/Snipaste_2022-01-10_15-54-57.jpg 600w, http:\/\/www.u3d8.com\/wp-content\/uploads\/2022\/01\/Snipaste_2022-01-10_15-54-57-300x284.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<p>\u5f53\u4fdd\u8bc1\u8bbe\u7f6e\u754c\u9762\u5f00\u542fUse HDR\u540e\uff0c\u5728\u76f8\u673a\u53c2\u6570\u91cc\u8bbe\u7f6eUse Graphics Settings<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.u3d8.com\/wp-content\/uploads\/2022\/01\/Snipaste_2022-01-10_16-45-58.jpg\" data-lightbox=\"image_lg\"><img title=\"Unity\u7406\u89e3HDR\uff08\u9ad8\u52a8\u6001\u8303\u56f4\uff09 - \u7b2c2\u5f20  | u3d8\u6280\u672f\u5206\u4eab\" alt=\"Unity\u7406\u89e3HDR\uff08\u9ad8\u52a8\u6001\u8303\u56f4\uff09 - \u7b2c2\u5f20  | u3d8\u6280\u672f\u5206\u4eab\"  loading=\"lazy\" width=\"427\" height=\"450\"  data-src=\"http:\/\/www.u3d8.com\/wp-content\/uploads\/2022\/01\/Snipaste_2022-01-10_16-45-58.jpg\" alt=\"\" class=\"wp-image-2562\" srcset=\"http:\/\/www.u3d8.com\/wp-content\/uploads\/2022\/01\/Snipaste_2022-01-10_16-45-58.jpg 427w, http:\/\/www.u3d8.com\/wp-content\/uploads\/2022\/01\/Snipaste_2022-01-10_16-45-58-285x300.jpg 285w\" sizes=\"(max-width: 427px) 100vw, 427px\" \/><\/a><\/figure>\n\n\n\n<h4>\u5728\u5185\u7f6e\u6e32\u67d3\u7ba1\u7ebf\u4e2d\u4f7f\u7528 HDR \u6e32\u67d3<\/h4>\n\n\n\n<p>\u5728\u524d\u5411\u6e32\u67d3\u8def\u5f84\u4e2d\uff0c\u4ec5\u5f53\u6444\u50cf\u673a\u4e0a\u8bbe\u7f6e\u4e86\u540e\u671f\u5904\u7406\u6548\u679c\u65f6\u6444\u50cf\u673a\u624d\u652f\u6301 HDR\u3002\u8fd9\u662f\u51fa\u4e8e\u6027\u80fd\u8003\u8651\u7684\u539f\u56e0\u3002\u5982\u679c\u6444\u50cf\u673a\u6ca1\u6709\u540e\u671f\u5904\u7406\u6548\u679c\uff0c\u5219\u573a\u666f\u5c06\u76f4\u63a5\u6e32\u67d3\u5230\u4e0d\u652f\u6301 HDR \u7684\u540e\u7f13\u51b2\u533a\u3002<\/p>\n\n\n\n<p>\u5728\u5ef6\u8fdf\u7740\u8272\u6e32\u67d3\u8def\u5f84\u4e2d\uff0c\u4e3a\u6444\u50cf\u673a\u542f\u7528 HDR \u65f6\uff0c\u5149\u7167\u7f13\u51b2\u533a\u4e5f\u88ab\u6307\u5b9a\u4e3a\u6d6e\u70b9\u7f13\u51b2\u533a\u3002\u8fd9\u6837\u53ef\u51cf\u5c11\u5149\u7167\u7f13\u51b2\u533a\u4e2d\u7684\u6761\u5e26\u3002<\/p>\n\n\n\n<h4>\u6e32\u67d3\u7ba1\u7ebf\u517c\u5bb9\u6027<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u6e32\u67d3\u7ba1\u7ebf<\/th><th>HDR \u6e32\u67d3<\/th><th>HDR \u8f93\u51fa<\/th><\/tr><\/thead><tbody><tr><td>\u5185\u7f6e\u6e32\u67d3\u7ba1\u7ebf<\/td><td>\u662f<br><br>\u5728 Inspector \u4e2d\u6216\u4f7f\u7528&nbsp;<a href=\"https:\/\/docs.unity3d.com\/cn\/current\/ScriptReference\/Camera.allowHDR.html\">Camera.allowHDR<\/a>&nbsp;API \u6765\u542f\u7528\u6bcf\u4e2a\u6444\u50cf\u673a\u7684 HDR \u6e32\u67d3\u3002<br><br>\u5728&nbsp;<a href=\"https:\/\/docs.unity3d.com\/cn\/current\/Manual\/class-GraphicsSettings.html\">Graphics \u8bbe\u7f6e<\/a>\u7a97\u53e3\u4e2d\u4e3a\u6bcf\u4e2a<a href=\"https:\/\/docs.unity3d.com\/cn\/current\/ScriptReference\/Rendering.GraphicsTier.html\">\u5c42<\/a>\u542f\u7528 HDR \u6e32\u67d3\u5e76\u914d\u7f6e HDR \u7f13\u51b2\u533a\u7684\u683c\u5f0f\u3002<\/td><td>\u662f<br><br>\u4f7f\u7528&nbsp;<a href=\"https:\/\/docs.unity3d.com\/cn\/current\/ScriptReference\/HDROutputSettings.html\">HDROutputSettings<\/a>&nbsp;API \u53ef\u914d\u7f6e HDR \u8f93\u51fa\u9009\u9879\u3002<br><br>\u6709\u5173\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u7279\u5b9a\u4e8e\u5e73\u53f0\u7684\u6587\u6863\u3002<\/td><\/tr><tr><td>\u901a\u7528\u6e32\u67d3\u7ba1\u7ebf (URP)<\/td><td>\u662f<br><br>\u5728 Inspector \u4e2d\u6216\u4f7f\u7528&nbsp;<a href=\"https:\/\/docs.unity3d.com\/cn\/current\/ScriptReference\/Camera.allowHDR.html\">Camera.allowHDR<\/a>&nbsp;API \u6765\u542f\u7528\u6bcf\u4e2a\u6444\u50cf\u673a\u7684 HDR \u6e32\u67d3\u3002<br><br>\u4f7f\u7528\u901a\u7528\u6e32\u67d3\u7ba1\u7ebf\u8d44\u6e90 (Universal Render Pipeline Asset) \u4e3a\u6240\u6709\u6444\u50cf\u673a\u542f\u7528 HDR \u6e32\u67d3\u3002<\/td><td>\u6b63\u5728\u7814\u7a76\u4e2d<br><br>\u5f00\u53d1\u56e2\u961f\u6b63\u5728\u7814\u7a76\u5982\u4f55\u5b9e\u73b0\u6b64\u529f\u80fd\u3002\u5c1a\u65e0\u8ba1\u5212\u7684\u53d1\u5e03\u65e5\u671f\u3002<\/td><\/tr><tr><td>\u9ad8\u6e05\u6e32\u67d3\u7ba1\u7ebf (HDRP)<\/td><td>\u662f<br><br>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6240\u6709\u6444\u50cf\u673a\u90fd\u542f\u7528 HDR \u6e32\u67d3\u3002\u65e0\u6cd5\u7981\u7528\u3002<\/td><td>\u6b63\u5728\u7814\u7a76\u4e2d<br><br>\u5f00\u53d1\u56e2\u961f\u6b63\u5728\u7814\u7a76\u5982\u4f55\u5b9e\u73b0\u6b64\u529f\u80fd\u3002\u5c1a\u65e0\u8ba1\u5212\u7684\u53d1\u5e03\u65e5\u671f\u3002<\/td><\/tr><\/tbody><\/table><figcaption><a href=\"https:\/\/docs.unity3d.com\/2020.1\/Documentation\/Manual\/30_search.html?q=newin20201\">2020.1<\/a>&nbsp;\u4e2d\u6dfb\u52a0\u4e86 HDROutputSettings API<\/figcaption><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u6ce8\uff1aHDR\u4e0e\u786c\u4ef6\u7ea7\u6297\u952f\u9f7f\uff08MSAA\uff09\u4e0d\u517c\u5bb9\u3002\u82e5\u8981\u4f7f\u7528HDR\uff0c\u4e00\u822c\u8981\u7528\u540e\u5904\u7406\u7ea7AA\u4e86~<\/p><\/blockquote>\n\n\n\n<h4>HDR\u4e2d\u7684\u5751<\/h4>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/blog.uwa4d.com\/archives\/2154.html\" target=\"_blank\">https:\/\/blog.uwa4d.com\/archives\/2154.html<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/70407560\" target=\"_blank\">https:\/\/zhuanlan.zhihu.com\/p\/70407560<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/answer.uwa4d.com\/question\/5e68b6374149350dbc5aec54\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/answer.uwa4d.com\/question\/5e68b6374149350dbc5aec54<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>HDR\u5168\u79f0Hight Dynamic Range \u4f7f\u7528\u573a\u666f \u4e00\u822c\u662f\u4e0e\u7ebf\u6027\u8272\u5f69\u7a7a\u95f4 &hellip; <a href=\"http:\/\/www.u3d8.com\/?p=2560\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[421],"tags":[],"_links":{"self":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/2560"}],"collection":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2560"}],"version-history":[{"count":3,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/2560\/revisions"}],"predecessor-version":[{"id":2565,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/2560\/revisions\/2565"}],"wp:attachment":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2560"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}