{"id":162,"date":"2024-06-29T00:07:37","date_gmt":"2024-06-28T16:07:37","guid":{"rendered":"http:\/\/chenglixue.top\/?p=162"},"modified":"2024-07-03T23:34:58","modified_gmt":"2024-07-03T15:34:58","slug":"%e9%ab%98%e8%b4%a8%e9%87%8fbloom","status":"publish","type":"post","link":"http:\/\/chenglixue.top\/?p=162","title":{"rendered":"\u9ad8\u8d28\u91cfBloom"},"content":{"rendered":"<p><div class=\"has-toc have-toc\"><\/div><\/p>\n<h1>\u4ec0\u4e48\u662fBloom?<\/h1>\n<p>Bloom\u662f\u7531\u4e8e\u900f\u955c\u4e0d\u80fd\u5b8c\u7f8e\u5730\u8ba9\u5149\u7ebf\u805a\u7126\u4e0e\u540c\u4e00\u70b9\u800c\u5bfc\u81f4\u56fe\u50cf\u4e0a\u7684\u9ad8\u4eae\u533a\u57df\u7684\u989c\u8272\u5411\u5468\u56f4\u6ea2\u51fa\u7684\u6548\u679c\u3002\u5728\u6e32\u67d3\u4e0a\uff0c\u4e00\u822c\u91c7\u53d6\u591a\u6b21\u6a21\u7cca\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u989c\u8272\u5411\u5468\u56f4\u6ea2\u51fa\u7684\u6548\u679c<\/p>\n<p>\u5728opengl\u6559\u7a0b\u4e2d\u662f\u8fd9\u6837\u63cf\u8ff0Bloom\u7684\u5b9e\u73b0\u601d\u8def\uff1a\u786e\u5b9a\u4e00\u4e2a<strong>\u4eae\u5ea6\u9608\u503c<\/strong>\uff0c\u63d0\u53d6\u5f53\u524dFrame Buffer\uff08HDR\u8303\u56f4\uff09\uff0c\u8ba1\u7b97\u5f53\u524dFrame Buffer\u6bcf\u4e2a\u50cf\u7d20\u70b9\u7684\u4eae\u5ea6\u503c\uff0c\u82e5\u5f53\u524d\u50cf\u7d20\u70b9\u7684\u4eae\u5ea6\u503c\u5927\u4e8e\u8bbe\u5b9a\u7684\u4eae\u5ea6\u9608\u503c\uff0c\u5219\u5c06\u5f53\u524d\u50cf\u7d20\u503c\u5199\u5165\u4e00\u5f20RT\u4e2d\uff0c\u968f\u540e\u5bf9\u8fd9\u5f20RT\u6a21\u7cca\uff0c\u6700\u540e\u548c\u539fFrameBuffer\u76f8\u52a0<\/p>\n<p>opengl\u6559\u7a0b\u7684\u601d\u8def\u6ca1\u6709\u9519\uff0c\u96c0\u6c0f\u9614\u4ee5\u5b9e\u73b0Bloom\u6548\u679c\uff0c\u4f46\u8fd9\u79cd\u65b9\u6cd5\u5f97\u5230\u7684Bloom\u6548\u679c\u5e76\u4e0d\u597d\u3002Bloom\u6548\u679c\u597d\u4e0d\u597d\u770b\uff0c\u5173\u952e\u5728\u4e8e<\/p>\n<ol>\n<li><strong>Bloom\u7684\u5bf9\u8c61<\/strong>\u2014\u2014\u8be5\u4eae\u7684\u5730\u65b9\u7279\u522b\u4eae\uff0c\u4e0d\u8be5\u4eae\u7684\u5730\u65b9\u522b\u4eae(\u5426\u5219\u753b\u9762\u6574\u4f53\u90fd\u5f88\u6a21\u7cca)<\/li>\n<li>Bloom\u5bf9\u8c61\u7684\u4e2d\u5fc3(\u4eae\u5ea6\u9ad8\u7684\u5730\u65b9)\u7279\u522b\u4eae<\/li>\n<li>\u989c\u8272\u5411\u56db\u5468\u6269\u6563\u7684\u534a\u5f84\u8db3\u591f\u5927\uff08\u5426\u5219\u753b\u9762\u8868\u73b0\u529b\u4e0d\u591f\uff09<\/li>\n<li>\u66f4\u4eae\u7684\u989c\u8272\u6269\u6563\u534a\u5f84\u66f4\u5927\uff1b\u6697\u7684\u989c\u8272\u6269\u6563\u534a\u5f84\u66f4\u5c0f\uff0c\u751a\u81f3\u4e8e\u4e0d\u6269\u6563<\/li>\n<\/ol>\n<p>UE\u66fe\u57282016 GDC\u4e0a\u5206\u4eab\u8fc7\u5b83\u4eec\u5b9e\u73b0\u7684Bloom\u7b97\u6cd5\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002\u4e0d\u96be\u770b\u51fa\uff0c\u597d\u7684Bloom\u7b97\u6cd5\uff0c\u4e2d\u95f4\u4eae\u5ea6\u5e94\u7279\u522b\u9ad8\uff0c\u8d8a\u5411\u8fb9\u7f18\u8d70\uff0c\u4eae\u5ea6\u8d8a\u4f4e<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic.imgdb.cn\/item\/667d8069d9c307b7e9185d33.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/667d8069d9c307b7e9185d33.png\" alt=\"\" \/><\/p><\/noscript>\n<h1>\u4e3a\u4ec0\u4e48\u9700\u8981HDR\uff1f<\/h1>\n<p>\u8ba1\u7b97\u673a\u7684\u7cbe\u5ea6\u662f\u6709\u9650\u7684\uff0c\u6700\u7ec8\u663e\u793a\u7684\u989c\u8272\u503c\u90fd\u4f1a\u88abclamp\u5728[0, 255]\uff0c\u5373\u4f7f\u662fHDR\u3002\u90a3\u4e3a\u4ec0\u4e48\u8fd8\u9700\u8981HDR\u5462\uff1f<\/p>\n<p>HDR\u5728\u8fd9\u91cc\u7684\u4f5c\u7528\u662f\u4e3a\u4e86<strong>\u66f4\u597d\u7684\u5411\u5916\u6269\u6563\u7684\u6548\u679c<\/strong>\uff0c\u9ad8\u4eae\u7684\u989c\u8272\u80fd\u6709\u6548\u5730\u6269\u6563\u5230\u56db\u5468\uff08\u56e0\u4e3a\u6a21\u7cca\u7684\u672c\u8d28\u662f\u52a0\u6743\u5e73\u5747\uff09<\/p>\n<h1>\u5982\u4f55\u5b9e\u73b0\u66f4\u5927\u7684\u6269\u6563\u8303\u56f4<\/h1>\n<p>\u90fd\u77e5\u9053Bloom\u6548\u679c\u8fb9\u7f18\u7684\u8f89\u5149\u6548\u679c\u662f\u901a\u8fc7\u6a21\u7cca\u6548\u679c\u5b9e\u73b0\u7684\uff0c\u90a3\u4e48\u5982\u4f55\u6269\u5927Bloom\u7684\u6269\u6563\u8303\u56f4\u5462\uff1f<\/p>\n<p>Jorge Jimenez\u57282014\u5e74Siggraph\u4e0a\u5206\u4eab\u8fc7\u4ed6\u5b9e\u73b0\u7684\u4e00\u79cdBloom\u7b97\u6cd5\uff0c\u8fd9\u5176\u4e2d\u5b83\u901a\u8fc7\u8fb9\u964d\u91c7\u6837\u5347\u91c7\u6837\u8fb9\u6a21\u7cca\uff0c\u5e76\u5728\u6700\u540e\u5c06\u6240\u6709\u5347\u91c7\u6837\u5f97\u5230\u7684\u7ed3\u679c\u90fd\u53e0\u52a0\u5728\u4e00\u8d77\u6765\u6269\u5927Bloom\u7684\u6269\u6563\u8303\u56f4<\/p>\n<p>\u867d\u7136\u8fd9\u79cd\u65b9\u6cd5\u96c0\u6c0f\u53ef\u4ee5\u6269\u5927Bloom\u7684\u6269\u6563\u8303\u56f4\uff0c\u4f46\u53e0\u52a0\u591a\u4e2a\u6a21\u7cca\u7ed3\u679c\u4f1a\u5bfc\u81f4\u6700\u7ec8\u7684\u4eae\u5ea6\u503c\u8fdc\u8d85\u9884\u671f\uff0c\u8bbe\u7f6e\u662f\u51e0\u500d\u4e4b\u591a\uff0c\u5c24\u5176\u662fPBR\u4e2d\u7684\u9ad8\u5149\u90e8\u5206\uff0c\u4f1a\u5f02\u5e38\u660e\u663e\uff01\u867d\u7136Tone mapping\u9614\u4ee5\u7a0d\u5fae\u7f13\u89e3\u8fd9\u4e00\u95ee\u9898\uff0c\u4f46\u5e76\u975e\u957f\u4e45\u4e4b\u8ba1<\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0cJorge Jimenez\u63d0\u51fa\u7c7b\u4f3c\u9ad8\u65af\u6a21\u7cca\u7684\u65b9\u5f0f\uff0c\u5728mip0\u3001mip1\u95f4\u6839\u636e\u6743\u91cd\u52a0\u6743\u5e73\u5747\u2014\u2014<strong>weight = 1\/(1 + Luma)<\/strong><\/p>\n<p>\u8fd9\u4e00\u65b9\u6cd5\u4e5f\u6709\u4e00\u5b9a\u635f\u5931\uff0c\u4f1a\u51cf\u5f31Bloom\u7684\u6548\u679c\uff0c\u4f46\u9ad8\u5149\u66f4\u52a0\u7a33\u5b9a\uff01<\/p>\n<p>\u66f4\u591a\u7684\uff0c\u8fd8\u9614\u4ee5\u5728\u6700\u540e\u53e0\u52a0\u65f6\uff0c<strong>\u9664\u4ee5\u964d\u91c7\u6837\u6b21\u6570<\/strong>\u6765\u524a\u5f31\u4eae\u5ea6\u66b4\u6da8\u7684\u95ee\u9898<\/p>\n<h1>\u603b\u7ed3Bloom\u6b65\u9aa4<\/h1>\n<ol>\n<li>\u7b2c\u4e00\u6b21\u964d\u91c7\u6837\u65f6\u51cf\u53bb\u9608\u503c\u5e76\u52a0\u6743\u6a21\u7cca<\/li>\n<li>\u964d\u91c7\u6837 + dual blur<\/li>\n<li>\u5347\u91c7\u6837 + \u53e0\u52a0\u5230\u539f\u56fe<\/li>\n<li>\u6700\u540e\u9664\u4ee5\u964d\u91c7\u6837\u6b21\u6570 * Bloom\u5f3a\u5ea6<\/li>\n<\/ol>\n<h1>\u6548\u679c<\/h1>\n<p>\u81ea\u5b9a\u4e49\u7684Bloom\u5982\u4e0b<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic.imgdb.cn\/item\/667eda7fd9c307b7e9323096.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/667eda7fd9c307b7e9323096.png\" alt=\"\" \/><\/p><\/noscript>\n<p>unity\u81ea\u5e26\u7684\u5982\u4e0b<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic.imgdb.cn\/item\/667edab3d9c307b7e9329476.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/667edab3d9c307b7e9329476.png\" alt=\"\" \/><\/p><\/noscript>\n<h1>\u4ee3\u7801\u4ed3\u5e93<\/h1>\n<p>https:\/\/github.com\/chenglixue\/Bloom<\/p>\n<h1>Reference<\/h1>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zznewclear13.github.io\/posts\/unity-high-quality-bloom\/\" target=\"_blank\"  rel=\"nofollow\" >Unity\u7684\u9ad8\u8d28\u91cf\u7684Bloom\u6548\u679c<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/525500877\" target=\"_blank\"  rel=\"nofollow\" >\u9ad8\u8d28\u91cf\u6cdb\u5149\uff08bloom\uff09\u4ece\u7406\u8bba\u5230\u5b9e\u6218<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.froyok.fr\/blog\/2021-12-ue4-custom-bloom\/\" target=\"_blank\"  rel=\"nofollow\" >Custom Bloom Post-Process in Unreal Engine<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fBloom? Bloom\u662f\u7531\u4e8e\u900f\u955c\u4e0d\u80fd\u5b8c\u7f8e\u5730\u8ba9\u5149\u7ebf\u805a\u7126\u4e0e\u540c\u4e00\u70b9\u800c\u5bfc\u81f4\u56fe\u50cf\u4e0a\u7684\u9ad8\u4eae\u533a\u57df\u7684\u989c\u8272\u5411\u5468\u56f4\u6ea2\u51fa\u7684\u6548\u679c\u3002\u5728\u6e32\u67d3\u4e0a\uff0c\u4e00\u822c\u91c7 &#8230;<\/p>","protected":false},"author":1,"featured_media":163,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/162"}],"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=162"}],"version-history":[{"count":2,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":175,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions\/175"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/media\/163"}],"wp:attachment":[{"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}