{"id":224,"date":"2024-09-14T19:16:59","date_gmt":"2024-09-14T11:16:59","guid":{"rendered":"http:\/\/chenglixue.top\/?p=224"},"modified":"2024-12-02T22:05:25","modified_gmt":"2024-12-02T14:05:25","slug":"unity-%e5%b1%8f%e5%b9%95%e7%a9%ba%e9%97%b4%e5%8f%8d%e5%b0%84screen-space-reflect","status":"publish","type":"post","link":"http:\/\/chenglixue.top\/?p=224","title":{"rendered":"Screen Space Reflect"},"content":{"rendered":"<p><div class=\"has-toc have-toc\"><\/div><\/p>\n<h1>\u524d\u8a00<\/h1>\n<p>\u672c\u6587\u603b\u7ed3\u4e86the surge\u3001ue\u3001\u5bd2\u971c\u5173\u4e8essr\u7684\u6280\u672f\u5206\u4eab\u5e76\u52a0\u4ee5\u5b9e\u73b0<\/p>\n<h1>\u4e24\u79cd\u7b97\u6cd5<\/h1>\n<h2>\u955c\u9762\u53cd\u5c04<\/h2>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic.imgdb.cn\/item\/66b4694fd9c307b7e9c0f60a.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\/66b4694fd9c307b7e9c0f60a.png\" alt=\"\" \/><\/p><\/noscript>\n<ul>\n<li>\u5148\u62ff\u5230color buffer\u3001normal buffer\u3001depth buffer\u7684\u4fe1\u606f\n<p>normal buffer\uff1a\u7528\u4e8e\u8ba1\u7b97\u53cd\u5c04<\/p>\n<p>depth buffer\uff1a\u7528\u4e8e\u5224\u65adraymarching\u7684\u5149\u7ebf\u662f\u5426\u4e0e\u573a\u666f\u76f8\u4ea4\uff0c\u76f8\u4ea4\u5219\u6709\u8d21\u732e<\/p>\n<\/li>\n<li>\n<p>\u6cbf\u7740\u53cd\u5c04\u5c04\u7ebf\u65b9\u5411\u8ffd\u8e2a<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic.imgdb.cn\/item\/66b4734cd9c307b7e9d07f4d.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\/66b4734cd9c307b7e9d07f4d.png\" alt=\"\" \/><\/p><\/noscript>\n<ol>\n<li><strong>\u6bcf\u6b21\u6b65\u8fdb\u56fa\u5b9a\u957f\u5ea6\u5f97\u5230test point\uff0c\u628a\u8be5test point\u8f6c\u6362\u5230\u5c4f\u5e55\u7a7a\u95f4\u5750\u6807(u,v,z)<\/strong><\/li>\n<li><strong>\u4f7f\u7528\u8be5z\u503c\uff0c\u4e0e\u7528(u, v)\u91c7\u6837\u5f97\u5230\u7684\u6df1\u5ea6\u56fed\uff0c\u8fdb\u884c\u6bd4\u8f83\u3002\u82e5z > d\uff0c\u8bf4\u660e\u5149\u7ebf\u548c\u573a\u666f\u6709\u76f8\u4ea4\u90e8\u5206\uff0c\u5e76\u8fd4\u56de\u8be5test point\u7684\u4fe1\u606f\uff1b\u5426\u5219\uff0c\u91cd\u590d\u4e0a\u8ff0\u6b65\u9aa4<\/strong><\/li>\n<\/ol>\n<\/li>\n<li>\u7528\u4ea4\u70b9\u7684\u989c\u8272\u4f5c\u4e3a\u53cd\u5c04\u989c\u8272<\/p>\n<\/li>\n<\/ul>\n<p>UE\u548cthe surge\u90fd\u4f7f\u7528\u7684\u8fd9\u79cd\u65b9\u6cd5<\/p>\n<h2>\u968f\u673a\u53cd\u5c04<\/h2>\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u96e8\u5929\u4e2d\uff0c\u5728\u5730\u9762\u7684\u6c34\u6f6d\u7684\u53cd\u5c04\u6548\u679c\u5728\u5782\u76f4\u65b9\u5411\u5b58\u5728\u62c9\u4f38\uff0c\u4e14\u5728\u53cd\u5c04\u5e73\u9762\u4e0a\u4e5f\u5b58\u5728\u8f83\u9ad8\u9891\u7387\u7684\u7c97\u7cd9\u5ea6\u4e0e\u6cd5\u7ebf\u7684\u53d8\u5316\u3002\u9488\u5bf9\u8fd9\u79cd\u60c5\u51b5\uff0c\u5bd2\u971c\u63d0\u51fa\u4e86\u968f\u673a\u5c4f\u5e55\u7a7a\u95f4\u53cd\u5c04<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674c90729342b.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733070959042.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674c90729342b.png\" alt=\"1733070959042.png\" \/><\/p><\/noscript>\n<p>\u5bd2\u971c\u7684\u6548\u679c\u9884\u671f\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u652f\u6301\u6e05\u6670\u4e0e\u6a21\u7cca\u7684\u53cd\u5c04<\/li>\n<li>\u5728\u63a5\u89e6\u533a\u57df\u6709\u6bd4\u8f83\u6e05\u6670\u7684\u53cd\u5c04\u8868\u73b0<\/li>\n<li>\u4e3a\u4e86\u63d0\u5347\u771f\u5b9e\u611f\uff0c\u9700\u8981\u7eb5\u5411\u7684\u62c9\u4f38\u6548\u679c<\/li>\n<li>\u652f\u6301\u9010\u50cf\u7d20\u7684\u7c97\u7cd9\u5ea6\u4e0e\u6cd5\u7ebf\u53cd\u5c04\u8c03\u6574<\/li>\n<\/ul>\n<h1>The Surge SSR<\/h1>\n<p>\u603b\u4f53\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674c92251e84c.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733071393544.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674c92251e84c.png\" alt=\"1733071393544.png\" \/><\/p><\/noscript>\n<p>\u5206\u5757\u5206\u7c7b\uff08tile-based classification\uff09->Raymarching->\u5bf9\u5f97\u5230\u7684\u7ed3\u679c\u8fdb\u884c\u591a\u6b21\u6a21\u7cca\uff0c\u6bcf\u6b21\u90fd\u4f5c\u4e3a\u53cd\u5c04\u7ed3\u679c\u7684mipmap->\u53bb\u566a->\u5f02\u6b65\u5904\u7406(\u4f18\u5316)<\/p>\n<h2>Tile-Based classification<\/h2>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674c931ad1c38.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733071639268.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674c931ad1c38.png\" alt=\"1733071639268.png\" \/><\/p><\/noscript>\n<p>\u56e0\u4e3a\u4e0d\u4e00\u5b9a\u6bcf\u4e2auv\u90fd\u4f1a\u6709\u53cd\u5c04\u6548\u679c\uff0c\u6240\u4ee5\u9700\u8981\u8bc6\u522b\u5c4f\u5e55\u4e2d\u9700\u8981SSR\u7684\u533a\u57df\uff0c\u5e76\u5c06\u4e4b\u5212\u5206\u6210\u4e0d\u540c\u7684tile\u3002\u5212\u5206\u540e\uff0c\u5bf9\u6bcf\u4e2atile\u8bc4\u4f30\uff0c\u8ba1\u7b97\u6bcf\u4e2atile\u53cd\u5c04\u5bf9\u5e94\u6240\u9700\u8981\u7684rays count<\/p>\n<h2>Ray Marching<\/h2>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674c940d4cb33.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733071881662.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674c940d4cb33.png\" alt=\"1733071881662.png\" \/><\/p><\/noscript>\n<ul>\n<li>\u7531\u4e8eSSR Raymarching\u7684\u8017\u80fd\u4e00\u822c\u90fd\u8f83\u5927\uff0c\u60f3\u8981\u4f7f\u7528\u8f83\u5927\u7684\u6b65\u957f\u4e14\u8f83\u5c0f\u7684\u6d88\u8017\u5c31\u9700\u8981<strong>\u964d\u5206\u8fa8\u7387<\/strong>\uff0c\u4e14the surge\u5728\u4f4e\u5206\u8fa8\u7387\u4e0b\u8fd8\u5c06<strong>\u4ea4\u9519\u5947\u6570\u5076\u6570\u5757\u5206\u4e3a\u4e24\u5e27<\/strong><\/p>\n<\/li>\n<li>\n<p>The surge\u6296\u52a8\u4e86normal \u2014\u2014\u5373\u7528\u5230\u4e86GGX\u91cd\u8981\u6027\u91c7\u6837<\/p>\n<\/li>\n<li>\u5728\u8ba1\u7b97\u53cd\u5c04\u6570\u636e\u65f6\uff0cray march\u7684\u6b65\u6570\u662f\u56fa\u5b9a\u7684\uff0c\u4e14\u6296\u52a8\u4e86ray\uff0c\u4ee5\u907f\u514d\u6b65\u8fdb\u6b21\u6570\u4e0d\u591f\u9ad8\uff0c\u9020\u6210\u7684\u952f\u9f7f<\/li>\n<li>\u5229\u7528\u5230\u4e86\u65f6\u7a7a\u6297\u952f\u9f7f\uff0c\u5373\u590d\u7528\u524d\u4e00\u5e27\u7684\u53cd\u5c04\u6570\u636e<\/li>\n<li>\u5728\u4e00\u4e2a2x2\u7684\u6838\u4e2d\uff0c\u8ba1\u7b97\u9ad8\u5206\u8fa8\u7387\u56fe\u7684\u76ee\u6807pixel\u5bf9\u5e94\u7684depth\u548c\u8be5pixel\u5728\u4f4e\u5206\u8fa8\u7387\u65c1\u8fb9\u56db\u4e2apixel\u7684depth\u5dee\uff0c\u9009\u62e9\u6700\u63a5\u8fd1\u5168\u5206\u8fa8\u7387\u6df1\u5ea6\u5e76\u8fd4\u56de\u8be5\u6837\u672c\u5bf9\u5e94\u7684\u4f4e\u5206\u8fa8\u7387\u989c\u8272<\/li>\n<li>\u8d85\u51fa\u5c4f\u5e55\u7684\u53cd\u5c04\u5c04\u7ebf\uff0c\u4e0d\u505aSSR\uff0c\u800c\u662f\u91c7\u6837<strong>\u53cd\u5c04\u63a2\u9488<\/strong><\/li>\n<\/ul>\n<p>GGX\u91cd\u8981\u6027\u91c7\u6837\u548cMask\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cadc563e0c.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733078465772.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cadc563e0c.png\" alt=\"1733078465772.png\" \/><\/p><\/noscript>\n<p>\u5176\u4e2dMask\u8fd8\u505a\u4e86\u8fb9\u7f18\u7684\u6d88\u6563<\/p>\n<h2>Resolve<\/h2>\n<p>Blur\u751f\u6210\u7684mipmap\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cae22bbd21.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733078559176.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cae22bbd21.png\" alt=\"1733078559176.png\" \/><\/p><\/noscript>\n<h2>Deinterleave and Reproject<\/h2>\n<ul>\n<li>\u7a7a\u95f4\u6ee4\u6ce2\uff1a\u5229\u7528\u4e34\u8fd1\u7684hit\u70b9\u505a\u6df7\u5408<\/li>\n<li>\u65f6\u95f4\u6ee4\u6ce2\uff1a\u5229\u7528\u4e0a\u4e00\u5e27\u7684\u540c\u4e00\u4e2auv\u6570\u636e\u505a\u6df7\u5408<\/li>\n<\/ul>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674caf1b540d6.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733078807593.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674caf1b540d6.png\" alt=\"1733078807593.png\" \/><\/p><\/noscript>\n<h1>\u5bd2\u971c SSR<\/h1>\n<p>\u5bd2\u971c\u63d0\u51fa\u7684\u6d41\u7a0b\u548cThe surge\u5dee\u4e0d\u591a\uff0c\u4e0d\u540c\u4e4b\u5904\u5728\u4e8e\u7528Hi Z\u52a0\u901fRay March\u3002\u867d\u7136\u5bd2\u971c\u7684\u6548\u679c\u66f4\u597d\uff0c\u4f46\u6d88\u8017\u4e5f\u66f4\u5927\uff0c\u4e0b\u9762\u6765\u770b\u51e0\u4e2a\u91cd\u8981\u90e8\u5206<\/p>\n<h2>Hi Z<\/h2>\n<p>Hi-Z\u5c06\u5c4f\u5e55\u6df1\u5ea6\u7684\u5c42\u6b21\u5173\u7cfb\u5b58\u50a8\u5728MipMap\u5c42\u7ea7\u4e2d\uff0c\u7528\u4e8e\u52a0\u901f\u53cd\u5c04\u5149\u7ebf\u7684\u6c42\u4ea4<\/p>\n<p>Hi-Z\u7684\u6784\u5efa\u65f6\uff0c\u5bf9\u5c4f\u5e55\u5c3a\u5bf8\u7684\u6df1\u5ea6\u8fdb\u884c\u6ee4\u6ce2\uff0c\u6bcf\u6b21\u4fdd\u5b582x2\u50cf\u7d20\u4e2d\u6700\u6d45\u7684\u50cf\u7d20<\/p>\n<p><strong>\u5728\u6bd4\u8f83\u76f8\u673a\u89c6\u89d2\u7684\u573a\u666f\u6df1\u5ea6\u548c\u53cd\u5c04\u5149\u7ebf\u7684\u6df1\u5ea6\u65f6\uff0c\u82e5\u53cd\u5c04\u5149\u7ebf\u7684\u6df1\u5ea6\u5c0f\u4e8e\u573a\u666f\u6df1\u5ea6\uff0cmipMap Level++\uff1b\u82e5\u53cd\u5c04\u5149\u7ebf\u7684\u6df1\u5ea6\u5927\u4e8e\u7b49\u4e8e\u573a\u666f\u6df1\u5ea6\uff0cmipMap Level--\u3002\u968f\u540e\u7ee7\u7eed\u6b65\u8fdb\uff0c\u91cd\u590d\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u76f4\u81f3mipMap Level\u5c0f\u4e8e0\uff0c\u5f53\u524d\u5f97\u5230\u7684\u573a\u666f\u6df1\u5ea6\u5373\u4e3a\u60f3\u8981\u7684<\/strong><\/p>\n<h2>\u4e24\u79cdRay Tracing\u65b9\u5f0f<\/h2>\n<ul>\n<li>\u5bf9\u4e8e<strong>\u5149\u6ed1<\/strong>\u7684\u53cd\u5c04\u5e73\u9762\uff0c\u9700\u8981\u8f83\u4e3a\u6e05\u6670\u7684\u53cd\u5c04\u6548\u679c\uff0c\u5bd2\u971c\u9009\u62e9\u4f7f\u7528\u7cbe\u786e\u7684HiZ tracing\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5f97\u5230\u7ed9\u51fa\u53cd\u5c04\u5c04\u7ebf\u7684\u7cbe\u786e\u4ea4\u70b9<\/p>\n<\/li>\n<li>\n<p>\u5bf9\u4e8e<strong>\u7c97\u7cd9<\/strong>\u7684\u53cd\u5c04\u5e73\u9762\uff0c\u4f7f\u7528\u6027\u80fd\u8f83\u597d\u4f46\u53cd\u5c04\u6548\u679c\u8f83\u4e3a\u7c97\u7cd9\u7684\u7ebf\u6027ray tracing\u65b9\u6cd5\uff0c\u8fd9\u79cd\u65b9\u5f0f\u5f97\u5230\u7684\u53cd\u5c04\u7ed3\u679c\u901a\u5e38\u4f1a\u9700\u8981\u7ecf\u8fc7\u6a21\u7cca\u5904\u7406\u6765\u63a9\u76d6\u6570\u636e\u7684\u7455\u75b5<\/p>\n<p>\u901a\u5e38\u4f1a\u7528\u5230\u5bf9\u6b65\u957f\u6296\u52a8\u6765\u63a9\u76d6\u952f\u9f7f\u7455\u75b5<\/p>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cb5f1d44fd.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733080558149.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cb5f1d44fd.png\" alt=\"1733080558149.png\" \/><\/p><\/noscript>\n<h2>Patiofilter<\/h2>\n<p>\u91cd\u8981\u6027\u91c7\u6837\u79ef\u5206\u6b21\u6570\u4e0d\u591f\u4f1a\u5bfc\u81f4\u566a\u70b9\u8fc7\u591a\uff0c\u53ef\u4ee5\u91c7\u7528\u7a7a\u95f4\u6ee4\u6ce2\u964d\u566a\u3002\u5f53\u8ba1\u7b97\u51fa\u53cd\u5c04\u5149\u7ebf\u4e0e\u573a\u666f\u4ea4\u53c9\u65f6\uff0c\u53ef\u4ee5\u7528\u5b83\u76f8\u90bb\u7684uv\u6570\u636e\u5047\u88c5\u6210\u5b83\u53d1\u5c04\u7684\u5149\u7ebf\uff0c\u4ece\u800c\u5f97\u5230\u66f4\u591a\u7684\u6837\u672c<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic.imgdb.cn\/item\/671a9b85d29ded1a8c601412.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\/671a9b85d29ded1a8c601412.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u968f\u540e\u4e58\u4ee5\u6743\u91cd<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic.imgdb.cn\/item\/671a9e71d29ded1a8c6178a5.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\/671a9e71d29ded1a8c6178a5.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a\u56e0\u4e3a\u5404\u4e2a\u70b9\u7684PDF\u662f\u4e0d\u540c\u7684\u3002<strong>\u82e5\u51e0\u4e2a\u70b9\u7684<span class=\"katex math inline\">\u03b8_h<\/span>\u4e3a\u534a\u7a0b\u5411\u91cf\uff08\u5373\u91c7\u6837\u65b9\u5411\uff09\u4e0e\u5b8f\u89c2\u6cd5\u7ebf\u5939\u89d2\u5dee\u5f02\u8f83\u5927\uff0c\u5f97\u5230\u7684PDF\u7684\u5dee\u5f02\u4e5f\u4f1a\u8f83\u5927<\/strong>\uff0c\u90a3\u4e48\u53cd\u5c04\u7ed3\u679c\u5c31\u5b58\u5728\u566a\u70b9<\/p>\n<p>\u4e3a\u4e86\u907f\u514d\u5f53\u4fef\u89d2\u5dee\u5f02\u8fc7\u5927\u5bfc\u81f4\u7684PDF\u5dee\u5f02\u8fc7\u5927\uff0c\u53ef\u4ee5\u5bf9\u968f\u673a\u6570\u8fdb\u884c\u622a\u65ad(\u622a\u65ad\u8f83\u5c0f\u7684\u503c)\u5e76\u91cd\u6620\u5c04\uff0c\u8fdb\u800c\u5f97\u5230\u66f4\u4e3a\u5e73\u7f13\u7684PDF\u503c<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic.imgdb.cn\/item\/671aa404d29ded1a8c640c52.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\/671aa404d29ded1a8c640c52.png\" alt=\"\" \/><\/p><\/noscript>\n<h1>\u5b9e\u73b0<\/h1>\n<p>\u8fd9\u91cc\u4ec5\u4ec5\u5c55\u793a\u91cd\u8981\u5b9e\u73b0\u90e8\u5206\u3002\u7531\u4e8e\u7b14\u8005\u8fd8\u6ca1\u4e86\u89e3\u8fc7tile-based classification\uff0c\u56e0\u6b64\u8fd9\u90e8\u5206\u6682\u65f6\u7701\u7565\uff0c\u4ee5\u540e\u586b\u5751<\/p>\n<h2>\u5bf9\u4e0d\u540croughness\u91c7\u7528\u4e0d\u540c\u65b9\u6848<\/h2>\n<p>\u5bf9\u4e8e\u8f83\u4e3a\u5149\u6ed1\u7684\u7269\u4f53\u5e94\u8be5\u8d70\u5b8c\u5168\u7684\u955c\u9762\u53cd\u5c04\uff0c\u800c\u975e\u968f\u673a\u7684\uff0c\u7b14\u8005\u91c7\u7528\u7684\u65b9\u6848\u662froughness\u5c0f\u4e8e0.1\u7684\uff0c\u8d70\u955c\u9762\u53cd\u5c04\uff0c\u5927\u4e8e\u7684\u8d70\u968f\u673a\u53cd\u5c04<\/p>\n<pre><code class=\"line-numbers\">if(roughness &gt; 0.1)\n{\n    float2 E = _BlueNoiseTex.SampleLevel(Smp_RepeatU_RepeatV_Linear, screenUV + Rand1SPPDenoiserInput(screenUV), 0).xy;\n    E.x = lerp(E.x, 0.f, _BRDFBias);\n    \/\/ \u83b7\u53d6\u5f53\u524d\u6cd5\u7ebf\u5728\u5207\u7ebf\u7a7a\u95f4\u76843\u4e2a\u6b63\u4ea4\u7684\u57fa\u5411\u91cf\n    float3x3 TangentBasis = GetTangentBasis( normalWS );\n    \/\/ \u5207\u7ebf\u7a7a\u95f4\u7684viewDir\u5411\u91cf\n    float3 TangentV = mul( TangentBasis, viewDirWS );\n    float4 halfVectorOS = ImportanceSampleVisibleGGX(E, pow2(roughness), TangentV );\n    PDF = halfVectorOS.w;\n    float4 H = float4(mul(halfVectorOS.xyz, TangentBasis ), halfVectorOS.w);\n    reflectDir = reflect(-viewDirWS, H.xyz);\n}\nelse\n{\n    reflectDir = reflect(-viewDirWS, normalWS);\n    PDF = 1;\n}\n<\/code><\/pre>\n<p>\u5728\u8ba1\u7b97\u53cd\u5c04\u989c\u8272\u9636\u6bb5\u4f1a\u7528\u5230\u7a7a\u95f4\u6ee4\u6ce2\uff0c\u590d\u7528\u5f53\u524d\u5e27\u4e34\u8fd1\u7684\u53cd\u5c04\u6570\u636e\uff0c\u5e76\u52a0\u6743\u5e73\u5747\uff0c\u8fd9\u4f1a\u52a0\u5f3a\u968f\u673a\u53cd\u5c04\u7684\u6548\u679c\u3002\u56e0\u6b64\u7b14\u8005\u91c7\u7528\u7684\u65b9\u6848\u662f\uff0croughness\u5c0f\u4e8e0.1\u7684\uff0c\u4e0d\u4f7f\u7528\u7a7a\u95f4\u6ee4\u6ce2\uff1b\u5927\u4e8e\u7684\u590d\u7528\u5468\u56f44\u4e2a\u62168\u4e2a\u50cf\u7d20\u70b9\u7684\u53cd\u5c04\u6570\u636e<\/p>\n<pre><code class=\"line-numbers\">uint numRays = 1;\n\nhalf totalWeight = 0;\nhalf4 totalColor = 0, currColor = 0;\nif(roughness &gt; 0.1)\n{\n    #if defined (_SSR_QUALITY_LOW)\n        numRays = 4;\n    #elif defined (_SSR_QUALITY_MIDDLE)\n        numRays = 6;\n    #elif defined (_SSR_QUALITY_HIGH)\n        numRays = 8;\n    #endif\n}\nelse\n{\n    numRays = 1;\n}\n\nfor(uint i = 0; i &lt; numRays; ++i)\n{\n    float2 offsetUV = mul(offsetRotationMatrix, offset[i] * _RayMarchTexSize.zw);\n    float2 neighborUV = uv + offsetUV;\n\n    float4 hitData  = _SSRHitDataTex.SampleLevel(Smp_ClampU_ClampV_Linear, neighborUV, 0);\n    float hitPDF    = _SSRHitPDFTex.SampleLevel(Smp_ClampU_ClampV_Linear, neighborUV, 0);\n    float2 hitUV    = hitData.rg;\n    float hitDepth  = hitData.b;\n    float hitMask   = hitData.a;\n\n    float4 hitPositionNDC = GetPositionNDC(hitUV, hitDepth);\n    float3 hitPositionVS = GetPositionVS(hitPositionNDC, Matrix_I_P);\n\n    half currWeight = BRDF_UE4(normalize(-positionVS), normalize(hitPositionVS - positionVS), normalVS, roughness) \/ max(1e-5, hitPDF);\n\n    currColor.rgb = _CameraColorTexture.SampleLevel(Smp_ClampU_ClampV_Linear, hitUV, 0);\n    currColor.a = hitMask;\n\n    totalColor += currColor * currWeight;\n    totalWeight += currWeight;\n}\n<\/code><\/pre>\n<p>\u65f6\u7a7a\u6ee4\u6ce2\u4f1a\u4f7f\u5f97\u753b\u9762\u53d8\u7cca\uff0c\u5bf9\u4e8e\u5149\u6ed1\u7684\u5730\u9762\uff0c\u5e94\u8be5\u5c3d\u53ef\u80fd\u4f7f\u524d\u4e00\u5e27\u7684\u5360\u6bd4\u5c3d\u91cf\u4f4e\u3002\u56e0\u6b64\u7b14\u8005\u91c7\u7528\u7684\u65b9\u6848\u662f\uff0croughness\u5c0f\u4e8e0.1\u7684\uff0c\u4e0a\u4e00\u5e27\u4ec5\u4ec5\u53600.1\u7684\u6bd4\u4f8b<\/p>\n<h2>\u964d\u91c7\u6837<\/h2>\n<p>\u8fd9\u91cc\u91c7\u7528UE\u7684\u601d\u8def\uff0c\u5347\u91c7\u6837\u65f6\u8ba1\u7b97\u9ad8\u5206\u8fa8\u7387\u56fe\u7684\u76ee\u6807pixel\u5bf9\u5e94\u7684depth\u548c\u8be5pixel\u5728\u4f4e\u5206\u8fa8\u7387\u65c1\u8fb9\u56db\u4e2apixel\u7684depth\u5dee\uff0c\u9009\u62e9\u6700\u63a5\u8fd1\u5168\u5206\u8fa8\u7387\u6df1\u5ea6\u5e76\u8fd4\u56de\u8be5\u6837\u672c\u5bf9\u5e94\u7684\u4f4e\u5206\u8fa8\u7387\u989c\u8272<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cb953a3b28.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733081424064.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cb953a3b28.png\" alt=\"1733081424064.png\" \/><\/p><\/noscript>\n<p>\u5347\u91c7\u6837\u524d\u548c\u5347\u91c7\u6837\u540e\u6548\u679c\u5206\u522b\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cb8047ae7f.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733081088404.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cb8047ae7f.png\" alt=\"1733081088404.png\" \/><\/p><\/noscript>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cb82722fb0.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733081123532.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cb82722fb0.png\" alt=\"1733081123532.png\" \/><\/p><\/noscript>\n<h2>Bounded VNDF Sampling GGX\u91cd\u8981\u6027\u91c7\u6837<\/h2>\n<p>\u8fd9\u91cc\u91c7\u6837<strong>Bounded VNDF Sampling<\/strong> GGX\u91cd\u8981\u6027\u91c7\u6837\uff0c\u8be5\u65b9\u6cd5\u6e32\u67d3\u8017\u65f6\u7565\u9ad8\uff0c\u4f46\u80fd\u5728\u6709\u9650\u7684\u91c7\u6837\u7387\u4e0b\u66f4\u597d\u5730\u8fd8\u539f\u9ad8\u7c97\u7cd9\u5ea6\u8868\u9762\u7684\u5916\u89c2\u3002\u6548\u679c\u533a\u522b\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cba43640f7.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733081663364.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674cba43640f7.png\" alt=\"1733081663364.png\" \/><\/p><\/noscript>\n<h2>Mip map Blur<\/h2>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u968f\u7740roughness\u7684\u589e\u52a0\uff0c\u53cd\u5c04\u6548\u679c\u53d8\u5f97\u66f4\u52a0\u6a21\u7cca\uff0c\u9700\u8981\u5bf9\u53cd\u5c04RT\u8fdb\u884c\u6a21\u7cca\uff0c\u6bcf\u6b21\u6a21\u7cca\u90fd\u4f5c\u4e3a\u4e00\u5c42mipmap\u3002\u5728\u6700\u540e\u5408\u5e76\u65f6\uff0c\u8ba9roughness\u548cblur\u7684\u5f3a\u5ea6\u6302\u94a9\u5373\u53ef<\/p>\n<p>\u8fd9\u91cc\u6a21\u7cca\u91c7\u7528The Surge\u63d0\u5230\u76847x7\u6a21\u7cca<\/p>\n<p>\u6a21\u7cca\u524d\u548c\u6a21\u7cca\u540e\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674db8d7d5a69.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733146834295.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674db8d7d5a69.png\" alt=\"1733146834295.png\" \/><\/p><\/noscript>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674db8f969430.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733146868306.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674db8f969430.png\" alt=\"1733146868306.png\" \/><\/p><\/noscript>\n<h1>\u6700\u7ec8\u6548\u679c<\/h1>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674dbe1bde430.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"1733148182139.png\" \/><\/p >\n<noscript><img decoding=\"async\" src=\"https:\/\/a1.boltp.com\/2024\/12\/02\/674dbe1bde430.png\" alt=\"1733148182139.png\" \/><\/p><\/noscript>\n<h1>Reference<\/h1>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.cnblogs.com\/KillerAery\/p\/15490834.html\" target=\"_blank\"  rel=\"nofollow\" >\u57fa\u4e8e\u5c4f\u5e55\u7a7a\u95f4\u7684\u5b9e\u65f6\u5168\u5c40\u5149\u7167\uff08Real-time Global Illumination Based On Screen Space\uff09<\/a><\/p>\n<p>GDC 2015 Stochastic Screen-Space Reflections<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/690342321\" target=\"_blank\"  rel=\"nofollow\" >Visible NDF\u91cd\u8981\u6027\u91c7\u6837\u5b9e\u8df5<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/58974920\" target=\"_blank\"  rel=\"nofollow\" >Unity StochasticSSR-03<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.cnblogs.com\/timlly\/p\/15048404.html\" target=\"_blank\"  rel=\"nofollow\" >\u5256\u6790\u865a\u5e7b\u6e32\u67d3\u4f53\u7cfb\uff0807\uff09- \u540e\u5904\u7406<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/tingxia1028.github.io\/cgbook\/GI\/ssgi\/UE_SSR.html\" target=\"_blank\"  rel=\"nofollow\" >UE SSR Realization<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.cnblogs.com\/KillerAery\/p\/15335369.html\" target=\"_blank\"  rel=\"nofollow\" >\u57fa\u4e8e\u9884\u8ba1\u7b97\u7684\u5b9e\u65f6\u73af\u5883\u5149\u7167\uff08Real-time Environment Lighting Based On Precomputation\uff09<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u672c\u6587\u603b\u7ed3\u4e86the surge\u3001ue\u3001\u5bd2\u971c\u5173\u4e8essr\u7684\u6280\u672f\u5206\u4eab\u5e76\u52a0\u4ee5\u5b9e\u73b0 \u4e24\u79cd\u7b97\u6cd5 \u955c\u9762\u53cd\u5c04 \u5148\u62ff\u5230color buffer\u3001 &#8230;<\/p>","protected":false},"author":1,"featured_media":187,"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\/224"}],"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=224"}],"version-history":[{"count":5,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":329,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions\/329"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/media\/187"}],"wp:attachment":[{"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}