{"id":507,"date":"2026-11-01T21:48:35","date_gmt":"2026-11-01T13:48:35","guid":{"rendered":"http:\/\/chenglixue.top\/?p=507"},"modified":"2026-11-01T21:57:02","modified_gmt":"2026-11-01T13:57:02","slug":"%e8%87%aa%e5%8a%a8%e6%9b%9d%e5%85%89-%e7%99%bb%e7%a5%9e%e7%af%87","status":"publish","type":"post","link":"http:\/\/chenglixue.top\/?p=507","title":{"rendered":"\u81ea\u52a8\u66dd\u5149\u2014\u2014\u767b\u795e\u7bc7"},"content":{"rendered":"<p><div class=\"has-toc have-toc\"><\/div><\/p>\n<ul>\n<li>\u524d\u8a00\n<p>\u76ee\u524d\u5b9e\u73b0\u7684\u81ea\u52a8\u66dd\u5149\u867d\u7136\u8fd8\u539f\u4e86\u76f8\u673a\u7684\u4e00\u90e8\u5206\u529f\u80fd\uff0c\u4f46\u8fd8\u5b58\u5728\u4e00\u4e2a\u81f4\u547d\u7684\u95ee\u9898\uff0c\u672c\u7bc7\u5c06\u8c08\u53ca\u8be5\u95ee\u9898\u662f\u4ec0\u4e48\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u5b58\u5728\uff0c\u5b9e\u65f6\u4e0b\u5982\u4f55\u89e3\u51b3<\/p>\n<\/li>\n<\/ul>\n<h1>\u81ea\u52a8\u66dd\u5149\u5b58\u5728\u7684\u95ee\u9898\u4e3a\u4ec0\u4e48\u4f1a\u5b58\u5728<\/h1>\n<p>\u867d\u7136\u81ea\u52a8\u66dd\u5149\u53ef\u4ee5\u6839\u636e\u753b\u9762\u4eae\u5ea6\u8ba1\u7b97\u5408\u9002\u7684\u66dd\u5149\u503c\uff0c\u4f46\u8fd9\u4e2a\u66dd\u5149\u503c\u662f\u5168\u5c40\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\u65e0\u8bba\u4eae\u5904\u8fd8\u662f\u6697\u5904\u90fd\u4f7f\u7528\u540c\u4e00\u4e2a\u66dd\u5149\u503c<\/p>\n<p>\u8fd9\u5c31\u5bfc\u81f4\u4e86\u4e00\u4e2a\u95ee\u9898\u2014\u2014\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5e94\u7528\u540e\u7684\u66dd\u5149\uff0c\u82e5\u540c\u65f6\u5b58\u5728\u6697\u90e8\u8f83\u6697\u4e14\u4eae\u90e8\u8f83\u4eae\u7684\u60c5\u51b5\uff0c\u6b64\u65f6\u82e5\u60f3\u6697\u90e8\u4e0d\u8981\u592a\u6697\uff08\u9632\u6b62\u6b7b\u9ed1\uff0c\u4e22\u5931\u6697\u90e8\u7ec6\u8282\uff09\uff0c\u9700\u8981\u62c9\u5927\u66dd\u5149\u503c\uff0c\u4f46\u4f1a\u5bfc\u81f4\u4eae\u90e8\u66f4\u4eae\uff0c\u4eae\u90e8\u4e22\u5931\u7684\u7ec6\u8282\u66f4\u591a\uff1b\u540c\u6837\u7684\uff0c\u82e5\u60f3\u6697\u90e8\u4e0d\u8981\u592a\u4eae\uff0c\u4e5f\u4f1a\u5b58\u5728\u76f8\u540c\u7684\u95ee\u9898<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_b6eaeb1650b159abe9c278b81fd414f9.jpg\" alt=\"\u81ea\u52a8\u66dd\u5149\u2014\u2014\u767b\u795e\u7bc7\" title=\"\u81ea\u52a8\u66dd\u5149\u2014\u2014\u767b\u795e\u7bc7\"><img decoding=\"async\"   class=\"lazyload\" data-src=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_b6eaeb1650b159abe9c278b81fd414f9.jpg\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><\/a><\/p >\n<noscript><img decoding=\"async\" src=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_b6eaeb1650b159abe9c278b81fd414f9.jpg\" alt=\"\" \/><\/a><\/p><\/noscript>\n<h1>\u5982\u4f55\u89e3\u51b3<\/h1>\n<ul>\n<li>Exposure Fusion\u5b58\u5728\u7684\u95ee\u9898\n<ul>\n<li>\u4ec0\u4e48\u662fExposure Fusion<\/li>\n<\/ul>\n<p>Exposure Fusion\u8fd9\u7bc7\u8bba\u6587\u63d0\u51fa\u4e86\u89e3\u51b3\u65b9\u6cd5\uff0c\u8be5\u4f5c\u8005\u63d0\u51fa\u53ef\u4ee5\u57fa\u4e8e\u539f\u56fe\u5404\u81ea\u7b5b\u9009\u539f\u56fe\u7684\u4f18\u70b9\uff0c\u57fa\u4e8e\u5404\u81ea\u4f18\u70b9\u5404\u81ea\u751f\u6210\u65b0\u7684\u56fe\uff0c\u518d\u4f7f\u7528\u62c9\u666e\u62c9\u65af\u91d1\u5b57\u5854\u6df7\u5408\u3002\u8be5\u8bba\u6587\u63d0\u5230\u7684\u4f18\u70b9\uff0c\u5206\u522b\u662f\u9971\u548c\u5ea6\u3001\u5bf9\u6bd4\u5ea6\u3001\u66dd\u5149\u5ea6\u3002\u4e0b\u56fe\u662f\u8be5\u65b9\u6cd5\u5f97\u5230\u7684\u6548\u679c\uff1a<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_411941b834ec653d8023e5080916f0de.jpg\" alt=\"\u81ea\u52a8\u66dd\u5149\u2014\u2014\u767b\u795e\u7bc7\" title=\"\u81ea\u52a8\u66dd\u5149\u2014\u2014\u767b\u795e\u7bc7\"><img decoding=\"async\"   class=\"lazyload\" data-src=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_411941b834ec653d8023e5080916f0de.jpg\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><\/a><\/p >\n<noscript><img decoding=\"async\" src=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_411941b834ec653d8023e5080916f0de.jpg\" alt=\"\" \/><\/a><\/p><\/noscript>\n<p>\u53ef\u4ee5\u770b\u5230\u4eae\u90e8\u3001\u6697\u90e8\u7ec6\u8282\u6e05\u6670\u53ef\u89c1<\/p>\n<ul>\n<li>Exposure Fusion\u4e3a\u4ec0\u4e48\u6ca1\u6709\u5728\u5de5\u4e1a\u754c\u5e7f\u6cdb\u5e94\u7528<\/li>\n<\/ul>\n<p>\u5982\u679c\u53bb\u67e5\u627e\u5206\u4eab\u7684Paper\uff0c\u53ef\u4ee5\u53d1\u73b0\u4e3b\u6d413a\u6e38\u620f\u57fa\u672c\u6ca1\u63d0\u5230\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u8fd9\u662f\u4e3a\u4ec0\u4e48\uff1f<\/p>\n<p>\u56e0\u4e3a\u5e94\u7528\u8be5\u65b9\u6cd5\uff0c\u5c31\u4e0d\u80fd\u63a5\u5165Tonemap\u3002\u7531\u4e8e\u8981\u5bf9\u539f\u56fe\u6df7\u5408\uff0c\u80af\u5b9a\u9700\u8981\u5c06\u539f\u56fe\u7684\u503c\u6620\u5c04\u5230[0,1]\uff0c\u540e\u7eed\u80af\u5b9a\u65e0\u6cd5\u63a5\u5165Tonemap<\/p>\n<\/li>\n<li>\n<p>\u89e3\u6cd5Local Exposure Fusion<\/p>\n<ul>\n<li>\u4ec0\u4e48\u662fLocal Exposure Fusion\n<p>\u4e0eExposure Fusion\u7c7b\u4f3c\uff0c\u4ecd\u8ba1\u7b97\u201c\u66dd\u5149\u5408\u9002\u201d\u7684\u4eae\u5ea6\uff0c\u4f46\u4e0d\u62ff\u53bb\u663e\u793a\u3002\u5148\u53cd\u53d8\u6362\u56de\u7ebf\u6027\u4eae\u5ea6\uff0c\u518d\u9664\u4ee5\u8fd9\u4e2a\u50cf\u7d20\u539f\u6765\u7684\u4eae\u5ea6\uff0c<strong>\u5f97\u5230\u4e00\u4e2a\u500d\u7387<\/strong>\uff0c\u7528\u4e8e\u540e\u7eedTonemap<\/p>\n<\/li>\n<li>\n<p>\u4f18\u70b9\uff1a\u6ca1\u7834\u574f\u989c\u8272\u6bd4\u4f8b<\/p>\n<\/li>\n<li>\u7f3a\u70b9\uff1a\u591a\u4e00\u6b21\u9006\u53d8\u6362<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>Local Exposure Fusion\u7b97\u6cd5\u6d41\u7a0b<\/h1>\n<ul>\n<li>\u8ba1\u7b97Scene Color Luminance<\/li>\n<li>\u57fa\u4e8eLuminance\uff0c\u989d\u5916\u8ba1\u7b97\u4e00\u4e2a\u66f4\u4eae\u3001\u66f4\u6697\u7684Luminance\uff0c\u5f97\u5230\u4e09\u4e2aLuminance<\/li>\n<li>\u4e09\u4e2aLuminance\u5e94\u7528Tonemap\u516c\u5f0f\uff0c\u5f97\u5230\u4e09\u4e2aTonemap<\/li>\n<li>\u7528\u79bb 0.5 \u7684\u8ddd\u79bb\u7b97\u6743\u91cd\uff08\u9ad8\u65af\u6743\u91cd\uff09<\/li>\n<li>\u91d1\u5b57\u58542x2\u964d\u91c7\u6837\u3002\u4e24\u5f20\u56fe\u5404\u81ea\u7f29\u5c0fN\u6b21<\/li>\n<li>Blend\uff1a\u6dfb\u52a0\u7ec6\u8282\n<ul>\n<li>\u5bf92x2\u964d\u91c7\u6837\u7684\u91d1\u5b57\u5854\uff0c\u4ece\u6700\u4f4e\u5206\u8fa8\u7387\u5230\u6700\u9ad8\u5206\u8fa8\u7387\uff0c\u8ba1\u7b97\u5f53\u524dpixel\uff0c\u6bcf\u6b21\u90fd\u7528pixel\u5f53\u524d\u7684\u5206\u8fa8\u7387\u7684\u4eae\u5ea6\uff0c\u51cf\u53bb\u5206\u8fa8\u7387\u66f4\u5c0f\u4e00\u7ea7\u7684\uff08\u7ec6\u8282 - \u6574\u4f53\uff0c\u76f8\u5f53\u4e8e\u662f\u7528\u5e73\u5747\u524d\u7684\u56db\u4e2a\u503c\u51cf\u53bb\u5e73\u5747\u503c\uff09\uff0c\u672c\u8d28\u662f\u4e3a\u4e86\u589e\u6dfb\u7ec6\u8282<\/li>\n<li>\u5c06\u8ba1\u7b97\u5f97\u5230\u7684\u5dee\u503c\u4e0e\u6743\u91cd\u76f8\u4e58\uff0c\u5f97\u5230\u4eae\u5ea6<\/li>\n<\/ul>\n<\/li>\n<li>\u9006Tonemap<\/li>\n<\/ul>\n<h1>Debug<\/h1>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_df5e431593c14e21ebd27d559b89156a.jpg\" alt=\"\u81ea\u52a8\u66dd\u5149\u2014\u2014\u767b\u795e\u7bc7\" title=\"\u81ea\u52a8\u66dd\u5149\u2014\u2014\u767b\u795e\u7bc7\"><img decoding=\"async\"   class=\"lazyload\" data-src=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_df5e431593c14e21ebd27d559b89156a.jpg\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><\/a><\/p >\n<noscript><img decoding=\"async\" src=\"http:\/\/chenglixue.top\/wp-content\/uploads\/2026\/11\/wp_editor_md_df5e431593c14e21ebd27d559b89156a.jpg\" alt=\"\" \/><\/a><\/p><\/noscript>\n<ul>\n<li>Local Exposure\n<p><strong>\u6bcf\u4e2a\u50cf\u7d20\u76f8\u5bf9 \u5168\u5c40\u81ea\u52a8\u66dd\u5149 \u8fd8\u8981\u518d\u4e58\u7684\u7cfb\u6570<\/strong><\/p>\n<p>localExposure = \u53cd tonemap(\u878d\u5408\u7ed3\u679c) \/ (HDR\u4eae\u5ea6 \u00d7 \u5168\u5c40\u66dd\u5149)<\/p>\n<pre><code class=\"language-glsl line-numbers\">float lum = max(dot(finalColor.rgb, float3(0.2126f, 0.7152f, 0.0722f)), 1e-5f);\nfloat fusion = SampleTexture2D(g_FusionTexIndex, screenUV, ClampLinearSampler).r;\nfusion = min(max(fusion, 0.0f), 0.999f);\nfloat fusedLum = (fusion * fusion) \/ max(1.0f - fusion * fusion, 1e-5f);\nfinalColor.rgb *= fusedLum \/ lum;\n<\/code><\/pre>\n<ul>\n<li>\u5982\u4f55\u770b\n<ul>\n<li>\u7ea2\uff1a\u7cfb\u6570 > 1\uff0c\u8fd9\u5757\u88ab \u63d0\u4eae\uff08\u6697\u90e8\uff09<\/li>\n<li>\u7eff\uff1a\u7cfb\u6570 &lt; 1\uff0c\u8fd9\u5757\u88ab \u538b\u6697\uff08\u4eae\u90e8\uff09<\/li>\n<li>\u9ed1\uff1a\u7cfb\u6570 \u2248 1\uff0c\u5c40\u90e8\u66dd\u5149\u51e0\u4e4e\u6ca1\u52a8\u624b<\/li>\n<li>\u8d8a\u4eae\uff1a\u504f\u79bb\u8d8a\u5927\uff0c\u6ee1\u5f3a\u5ea6\u5927\u7ea6 \u00b12 \u6863<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Thresholds\n<p><strong>\u53e0\u5728\u573a\u666f\u4e0a\u7684 \u4eae\u5ea6\u5206\u533a\u56fe\uff0c\u53ea\u770b\u3001\u4e0d\u53c2\u4e0e fusion<\/strong><\/p>\n<ul>\n<li>Highlight Threshold\uff1a\u6bd4\u4e2d\u7070 \u4eae\u8d85\u8fc7\u8fd9\u4e48\u591a\u6863 \u7684\u50cf\u7d20\u6253\u7eff\u659c\u7eb9<\/li>\n<li>Shadow Threshold\uff1a\u6bd4\u4e2d\u7070 \u6697\u8d85\u8fc7\u8fd9\u4e48\u591a\u6863 \u7684\u50cf\u7d20\u6253\u7ea2\u659c\u7eb9<\/li>\n<\/ul>\n<p>\u76f8\u5bf9 middle grey \u7684 log2 \u6863\u6570\uff1a<\/p>\n<ul>\n<li>\u7eff\u659c\u7eb9\uff1a\u6bd4 middle grey \u4eae\u8d85\u8fc7 Highlight Threshold<\/li>\n<li>\u7ea2\u659c\u7eb9\uff1a\u6bd4 middle grey \u6697\u8d85\u8fc7 Shadow Threshold<\/li>\n<\/ul>\n<p>\u9ed8\u8ba4\u9608\u503c\u662f 0\uff1a\u6bd4\u4e2d\u7070\u4eae\u7684\u5168\u7eff\u7eb9\uff0c\u6697\u7684\u5168\u7ea2\u7eb9\u3002\u628a\u9608\u503c\u62c9\u5230 1\uff5e2\uff0c\u53ea\u5269\u4e0b\u771f\u6b63\u8fc7\u66dd\/\u6b7b\u9ed1\u7684\u533a\u57df\u3002\u7528\u6765\u5224\u65ad\u76f4\u65b9\u56fe\u66dd\u5149\u6709\u6ca1\u6709\u628a\u4e2d\u7070\u653e\u5bf9\uff0c\u4ee5\u53ca\u9ad8\u5149\/\u6697\u90e8\u6709\u591a\u5927\u9762\u79ef<\/p>\n<\/li>\n<li>\n<p>Base \/ Shadows \/ Highlights<\/p>\n<p>Fusion \u7684\u4e09\u5f20\u300c\u66dd\u5149\u300d\u2014\u2014\u5168\u5206\u8fa8\u7387\u4eae\u5ea6\u56fe\uff08\u7ecf\u8fc7 sqrt(L\/(1+L))\uff0c\u4e2d\u7070\u5927\u7ea6\u662f 0.5 \u7684\u7070\uff09<\/p>\n<ul>\n<li>Base\uff1a\u6b63\u5e38\u4eae\u5ea6<\/li>\n<li>Shadows\uff1a\u4eae\u5ea6 \u00d7 Shadow Contrast<\/li>\n<li>Highlights\uff1a   \u4eae\u5ea6 \u00d7 Highlight Contrast<\/li>\n<\/ul>\n<\/li>\n<li>Weights\n<p>\u6bcf\u4e2a\u50cf\u7d20\u7528\u54ea\u5f20\u66dd\u5149\uff0c\u753b\u6210\u989c\u8272<\/p>\n<ul>\n<li>\u84dd\uff1aBase<\/li>\n<li>\u7ea2\uff1aShadows<\/li>\n<li>\u7eff\uff1aHighlights<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>\u6548\u679c\u5bf9\u6bd4<\/h1>\n<p>After\uff1a<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/bee-reg-ab.imagency.cn\/mr\/202611\/01\/6ae743e61eae6.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"Snipaste_2026-11-01_21-26-21\" \/><br \/ >\n<noscript><img decoding=\"async\" src=\"https:\/\/bee-reg-ab.imagency.cn\/mr\/202611\/01\/6ae743e61eae6.png\" alt=\"Snipaste_2026-11-01_21-26-21\" \/><br \/><\/noscript>\nBefor\uff1a<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/bee-reg-ab.imagency.cn\/mr\/202611\/01\/6ae744da4fefd.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"Snipaste_2026-11-01_21-26-31\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/bee-reg-ab.imagency.cn\/mr\/202611\/01\/6ae744da4fefd.png\" alt=\"Snipaste_2026-11-01_21-26-31\" \/><\/p><\/noscript>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u76ee\u524d\u5b9e\u73b0\u7684\u81ea\u52a8\u66dd\u5149\u867d\u7136\u8fd8\u539f\u4e86\u76f8\u673a\u7684\u4e00\u90e8\u5206\u529f\u80fd\uff0c\u4f46\u8fd8\u5b58\u5728\u4e00\u4e2a\u81f4\u547d\u7684\u95ee\u9898\uff0c\u672c\u7bc7\u5c06\u8c08\u53ca\u8be5\u95ee\u9898\u662f\u4ec0\u4e48\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u5b58\u5728\uff0c\u5b9e\u65f6\u4e0b\u5982\u4f55\u89e3\u51b3  &#8230;<\/p>","protected":false},"author":1,"featured_media":455,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/507"}],"collection":[{"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=507"}],"version-history":[{"count":4,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/507\/revisions"}],"predecessor-version":[{"id":511,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/507\/revisions\/511"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/media\/455"}],"wp:attachment":[{"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=507"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}