{"id":352,"date":"2026-02-27T17:15:33","date_gmt":"2026-02-27T09:15:33","guid":{"rendered":"http:\/\/chenglixue.top\/?p=352"},"modified":"2026-03-01T22:56:47","modified_gmt":"2026-03-01T14:56:47","slug":"dx12-%e4%bb%8e%e9%9b%b6%e5%bc%80%e5%a7%8b%e7%9a%84ddgi","status":"publish","type":"post","link":"http:\/\/chenglixue.top\/?p=352","title":{"rendered":"DX12 \u4ece\u96f6\u5f00\u59cb\u7684DDGI"},"content":{"rendered":"<p><div class=\"has-toc have-toc\"><\/div><\/p>\n<h1>\u524d\u8a00<\/h1>\n<p><strong>DDGI (Dynamic Diffuse Global Illumination)<\/strong>\uff0c\u540d\u53eb<strong>\u52a8\u6001\u6f2b\u53cd\u5c04\u5168\u5c40\u5149\u7167<\/strong>\uff0c\u8fd9\u662f\u7531NVIDIA\u63d0\u51fa\u7684\u4e00\u79cd\u5168\u5c40\u5149\u7167\u6280\u672f\uff0c\u5b83\u7ed3\u5408<strong>\u5149\u7ebf\u8ffd\u8e2a\uff08Ray Tracing\uff09<\/strong>\u548c<strong>\u8f90\u7167\u5ea6\u63a2\u9488\uff08Irradiance Probes\uff09<\/strong>\uff0c\u7528\u4e8e\u89e3\u51b3\u52a8\u6001\u573a\u666f\u4e2d\u9ad8\u8d28\u91cf\u3001\u5b9e\u65f6\u6f2b\u53cd\u5c04\u95f4\u63a5\u5149\u7684\u95ee\u9898<\/p>\n<h1>\u4e3a\u4ec0\u4e48\u9700\u8981DDGI<\/h1>\n<p>DDGI \u89e3\u51b3\u4e86\u4f20\u7edf\u63a2\u9488\u7684\u4e24\u5927\u75db\u70b9\uff1a<strong>\u66f4\u65b0\u5f00\u9500<\/strong>\u548c<strong>\u6f0f\u5149<\/strong><\/p>\n<ul>\n<li>\u4f20\u7edf\u63a2\u9488\n<ul>\n<li>\u5927\u591a\u9700\u9884\u8ba1\u7b97\uff0c\u65e0\u6cd5\u5904\u7406\u52a8\u6001\u7269\u4f53<\/li>\n<li>\u53ef\u89c1\u6027\u95ee\u9898\u5bfc\u81f4\u4e25\u91cd\u7a7f\u5899\uff0c\u5bb9\u6613\u6f0f\u5149\uff0c\u9700\u624b\u52a8\u653e\u7f6e\u5927\u91cf\u5c4f\u853d\u677f<\/li>\n<\/ul>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699e8d8dfd73d871e62c66ae.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:\/\/pic1.imgdb.cn\/item\/699e8d8dfd73d871e62c66ae.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u4e0b\u56fe\u5929\u82b1\u677f\u5373\u662f\u6f0f\u5149<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699e8ee7fd73d871e62c66c9.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:\/\/pic1.imgdb.cn\/item\/699e8ee7fd73d871e62c66c9.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u4e0b\u56fe\u9634\u5f71\u7531\u95e8\u540e\u7684probe\u6cc4\u9732<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699e8f20fd73d871e62c66ce.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:\/\/pic1.imgdb.cn\/item\/699e8f20fd73d871e62c66ce.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<li>\n<p>DDGI<\/p>\n<ul>\n<li>\u5f00\u9500\u4f4e\uff1a\u5c063d\u7eb9\u7406\u6620\u5c04\u57282d\u7eb9\u7406\uff0c\u6bcf\u4e2a\u63a2\u9488\u76842d\u7eb9\u7406\u4ec5\u67098&#42;8\u548c16*16\u7684\u5927\u5c0f\uff0c\u6bcf\u5e27\u8017\u65f6\u51e0ms<\/li>\n<li><strong>Avoid leaks with visibility data + heuristics<\/strong>\uff08\u4f7f\u7528\u53ef\u89c1\u6027\u6570\u636e + \u542f\u53d1\u5f0f\u7b97\u6cd5\u907f\u514d\u6cc4\u6f0f\uff09\uff1a\u501f\u9274<strong>VSM<\/strong>\uff0c\u8ba1\u7b97\u50cf\u7d20\u5230\u63a2\u9488\u7684\u8ddd\u79bb\uff0c\u5bf9\u6bd4\u63a2\u9488\u8bb0\u5f55\u7684\u5e73\u5747\u8ddd\u79bb\u548c\u65b9\u5dee\uff0c\u5229\u7528<strong>\u5207\u6bd4\u96ea\u592b\u4e0d\u7b49\u5f0f<\/strong>\u8ba1\u7b97\u8be5\u50cf\u7d20\u88ab\u906e\u6321\u7684\u6982\u7387\u3002\u5982\u679c\u50cf\u7d20\u88ab\u5899\u6321\u4f4f\u4e86\uff0c\u8be5\u63a2\u9488\u7684\u8d21\u732e\u5ea6\u5c31\u4f1a\u964d\u4e3a 0<\/li>\n<li><strong>Dynamic irradiance in 1-2M rays\/frame<\/strong>\uff08\u6bcf\u5e27 100\u4e07\u5230200\u4e07 \u6761\u5149\u7ebf\uff09<\/li>\n<li><strong>Noiseless, incremental, infinite-bounce<\/strong> \uff08\u65e0\u566a\u58f0\u3001\u589e\u91cf\u3001\u65e0\u9650\u53cd\u5f39\uff09<\/li>\n<li><strong>Forward, deferred, transparent, volumetric, etc.<\/strong>\uff08\u652f\u6301\u524d\u5411\u3001\u5ef6\u8fdf\u3001\u900f\u660e\u3001\u4f53\u79ef\u5149\u7b49\u6e32\u67d3\u7ba1\u7ebf\uff09<\/li>\n<li><strong>Eliminate surface parameterization\/manual probe placement requirement<\/strong>\uff08\u6d88\u9664\u624b\u52a8\u653e\u7f6e\u63a2\u9488\u7684\u8981\u6c42\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u4f46DDGI\u4e0d\u662f\u5b8c\u7f8e\u7684\uff0c\u4ed6\u53ea\u80fd\u8ba1\u7b97\u6f2b\u53cd\u5c04\uff0c\u9ad8\u5149\u4ecd\u9700SSR<\/p>\n<h1>DDGI\u7b97\u6cd5<\/h1>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699e921efd73d871e62c8e15.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:\/\/pic1.imgdb.cn\/item\/699e921efd73d871e62c8e15.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u6d41\u7a0b\u4e0d\u590d\u6742\uff0c\u4f46\u60f3\u4e00\u4e2a\u4e00\u4e2a\u5168\u90e8\u5b9e\u73b0\u662f\u5f88\u590d\u6742\u7684\uff0c\u5927\u81f4\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>Ray Tracing &amp; Shade<\/strong>\uff1a\u6bcf\u4e2a\u63a2\u9488\u53d1\u5c04\u56fa\u5b9a\u6570\u91cf\u7684\u5747\u5300\u5206\u5e03\u5c04\u7ebf\uff0c\u4f7f\u7528\u4e0a\u4e00\u6b21\u8fed\u4ee3\u7ed3\u679cshade\uff1a\u5b9e\u73b0\u65e0\u9650\u6b21\u53cd\u5f39\u7684\u5168\u5c40\u5149\u7167\n<p>\u901a\u8fc7\u516b\u9762\u4f53\u6620\u5c04\uff0c\u5c06\u6bcf\u4e2a\u7403\u9762\u6620\u5c04\u52302d\u8d34\u56fe\uff0c\u5f97\u5230\u4e00\u5f20irradiance\u3001\u4e00\u5f20distance\u7ed3\u679c\uff1a<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699e9405fd73d871e62c8e43.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:\/\/pic1.imgdb.cn\/item\/699e9405fd73d871e62c8e43.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<li>\n<p><strong>Blend<\/strong>\uff1ablend irradiance\u548cdepth\u5230probe<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699ec47cfd73d871e62d9c9f.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><br \/ >\n<noscript><img decoding=\"async\" src=\"https:\/\/pic1.imgdb.cn\/item\/699ec47cfd73d871e62d9c9f.png\" alt=\"\" \/><br \/><\/noscript>\n\u4e0a\u56fe\u5706\u5708\u7684\u9ed1\u4f53\u8868\u793a\u4e00\u4e2atexel\uff0c\u9ed1\u4f53\u7684\u9ed1\u8272\u7bad\u5934\u662f\u4e0etexel\u5173\u8054\u7684\u65b9\u5411\uff0c\u8be5texel\u5b58\u50a8\u6bcf\u4e2aray\u7684\u52a0\u6743\u5e73\u5747\uff0c\u9760\u8fd1texel\u7684\u6743\u91cd\u8d8a\u5927\uff0c\u53cd\u4e4b\u6743\u91cd\u8d8a\u5c0f<\/p>\n<\/li>\n<li>\n<p><strong>Border Fix<\/strong>\uff1a\u5904\u7406\u7eb9\u7406\u8fb9\u7f18\uff0c\u9632\u6b62\u91c7\u6837\u65f6\u7684\u5206\u5757\u611f<\/p>\n<\/li>\n<li>\n<p><strong>Sample<\/strong>\uff1a\u57fa\u4e8e3d\u5750\u6807\u3001\u53ef\u89c1\u6027\u3001normal \u4f53\u79ef\u91c7\u6837<\/p>\n<\/li>\n<\/ul>\n<h1>\u5b9e\u73b0\u6d41\u7a0b<\/h1>\n<ul>\n<li>\n<p>\u5b9a\u4e49\u5c3a\u5bf8<\/p>\n<p>\u5c3a\u5bf8\u53c2\u8003nvidia\u5b98\u65b9<\/p>\n<ul>\n<li><strong>ProbeGrid<\/strong> \uff1a <strong>X<\/strong> x <strong>Y<\/strong> x <strong>Z<\/strong> \u4e2a\u63a2\u9488<\/p>\n<\/li>\n<li>\n<p><strong>Ray Data Buffer<\/strong> \uff1a\u5b58\u50a8DXR\u8ba1\u7b97\u7684\u7ed3\u679c<\/p>\n<\/li>\n<li>\n<p><strong>\u5927\u5c0f\uff1a<\/strong> <code>ProbeCount * RaysPerProbe<\/code><\/p>\n<\/li>\n<li>\n<p><strong>Struct:<\/strong> \u5b58 <code>float3 Radiance<\/code> (\u989c\u8272) \u548c <code>float Distance<\/code> (\u8ddd\u79bb)<\/p>\n<\/li>\n<li>\n<p><strong>Irradiance Texture<\/strong>\uff1a\u5b58\u50a8\u6700\u7ec8\u6df7\u5408\u7684GI<\/p>\n<\/li>\n<li>\n<p><strong>\u6bcf\u4e2a\u63a2\u9488\u5927\u5c0f<\/strong>\uff1a\u6bcf\u4e2a\u63a2\u9488 6x6 \u50cf\u7d20\uff0c\u52a0\u4e0a 1 \u50cf\u7d20\u8fb9\u6846\uff08\u7528\u4e8e\u53cc\u7ebf\u6027\u63d2\u503c\uff09\uff0c\u4e00\u5171 <strong>8x8<\/strong><\/p>\n<p>\u56e0\u4e3a\u6700\u7ec8\u8ba1\u7b97\u7684\u9700\u8981\u53cc\u7ebf\u6027\u63d2\u503c\uff0c\u5230\u8fb9\u7f18\u662f\u4e0d\u5bf9\u7684\uff08\u4f1a\u91c7\u6837\u5230\u8eab\u65c1\u7684probe\uff09\uff0c\u9700\u8981\u5728\u4e0a\u4e0b\u5de6\u53f3\u591a\u589e\u52a01pixel\uff0c\u5e76\u4f7f\u7528Board\u5bfb\u5740<\/p>\n<\/li>\n<li>\n<p><strong>\u5bbd<\/strong>\uff1aProbeGrid.X * 8<\/p>\n<\/li>\n<li>\n<p><strong>\u9ad8<\/strong>\uff1aProbeGrid.Y * ProbeGrid.Z * 8<\/p>\n<\/li>\n<li>\n<p><strong>Distance Texture<\/strong>\uff1a\u5b58probe\u5230hit\u7684distance\u6570\u636e (R\u5b58distance\u7684\u52a0\u6743\uff0cG\u5b58distance\u5e73\u65b9\u7684\u52a0\u6743)<\/p>\n<\/li>\n<li>\n<p><strong>\u6bcf\u4e2a\u63a2\u9488\u5927\u5c0f<\/strong>\uff1a\u6bcf\u4e2a\u63a2\u9488 14x14 \u50cf\u7d20\uff0c\u52a0\u8fb9\u6846\u5171 <strong>16x16<\/strong><\/p>\n<\/li>\n<li><strong>\u5bbd<\/strong>\uff1aProbeGrid.X * 16<\/li>\n<li><strong>\u9ad8<\/strong>\uff1aProbeGrid.Y * ProbeGrid.Z * 16<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Debug<\/h2>\n<ul>\n<li>\n<p>\u76ee\u7684\uff1a\u786e\u5b9a\u63a2\u9488\u5728\u573a\u666f\u7684\u4f4d\u7f6e<\/p>\n<p>\u5148\u786e\u5b9a\u573a\u666f\u6700\u5927\u7684BoundingBOX\uff0c\u5728BoundingBOX\u4e2d\u5747\u5206\u63a2\u9488\uff0c\u5f97\u5230BoundingBOX\u7684\u8d77\u70b9\uff08<strong>gridOrigin<\/strong>\uff09\uff0c\u53ca\u95f4\u9694\uff08<strong>gridSpacing<\/strong>\uff09\uff0c\u968f\u540e\u5728debug shader\u4e2d\u8ba1\u7b97\u6bcf\u4e2a\u63a2\u9488\u7684\u4e16\u754c\u7a7a\u95f4\u4f4d\u7f6e\uff0c\u5728\u5bf9\u5e94\u4f4d\u7f6e\u7ed8\u5236\u5706\u7403<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u73b0\u7ec6\u8282<\/p>\n<ul>\n<li>\u7531\u4e8e\u63a2\u9488\u6570\u91cf\u5f88\u591a\uff0c\u8fd9\u91cc\u4f7f\u752820\u4e2a\u9762\uff0c60\u4e2a\u7d22\u5f15\u7684\u7403\u4f53\u548c\u5b9e\u4f8b\u5316\u6765\u51cf\u5c0fdebug\u4e0b\u7684\u6027\u80fd\u6d88\u8017<\/p>\n<\/li>\n<li>\n<p>\u5c06<strong>gridOrigin<\/strong>\u3001<strong>gridSpacing<\/strong>\u3001<strong>ProbeGrid<\/strong>\u5c3a\u5bf8\u4f20\u9012\u7ed9shader\uff0c\u5e76\u7ed3\u5408<strong>SV_InstanceID<\/strong>\u8ba1\u7b97\u4e16\u754c\u7a7a\u95f4\u5750\u6807<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"line-numbers\">uint3 GetProbeGridCoord(uint probeIndex)\n{\n    uint3 gridCoord;\n    gridCoord.x = probeIndex % 16;\n    gridCoord.y = (probeIndex \/ 16) % 4;\n    gridCoord.z = probeIndex \/ (16 * 4);\n    return gridCoord;\n}\n\nfloat3 GetProbeWorldPosition(uint probeIndex)\n{\n    uint3 coord = GetProbeGridCoord(probeIndex);\n    \/\/ \u4f4d\u7f6e = \u8d77\u70b9 + \u7d22\u5f15 * \u6b65\u957f\n    return g_GridOrigin + (float3(coord) * g_GridSpacing);\n}\n\no.positionWS = i.positionOS + o.probeCenterWS;\n<\/code><\/pre>\n<\/li>\n<li>\n<p>\u6548\u679c<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/69861312ebc140ce3fa12bc6.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:\/\/pic1.imgdb.cn\/item\/69861312ebc140ce3fa12bc6.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<\/ul>\n<h2>\u516b\u9762\u4f53\u6620\u5c04<\/h2>\n<ul>\n<li>\n<p>\u76ee\u7684\uff1aDDGI\u901a\u8fc7\u516b\u9762\u4f53\u6620\u5c04\u5c06\u4e09\u7ef4\u4fe1\u606f\u6620\u5c04\u5230\u4e8c\u7ef4\u5750\u6807\uff0c\u4ece\u800c\u51cf\u5c11\u5185\u5b58\u6d88\u8017<\/p>\n<\/li>\n<li>\n<p>\u4ec0\u4e48\u662f\u516b\u9762\u4f53\u6620\u5c04<\/p>\n<p>\u516b\u9762\u4f53\u6620\u5c04\uff08Octahedral Mapping\uff09\u7684\u8fc7\u7a0b\u662f\u5c06\u4e00\u4e2a\u7403\u4f53\u6295\u5f71\u5230\u4e00\u4e2a\u6b63\u516b\u9762\u4f53\u4e0a\uff0c\u7136\u540e\u50cf\u5207\u6a58\u5b50\u76ae\u4e00\u6837\u628a\u5b83\u644a\u5e73\u5728\u4e00\u4e2a\u6b63\u65b9\u5f62\u5e73\u9762\u5185<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/698613a8ebc140ce3fa12be4.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:\/\/pic1.imgdb.cn\/item\/698613a8ebc140ce3fa12be4.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<li>\n<p>\u4e3a\u4ec0\u4e48\u662f\u516b\u9762\u4f53\u6620\u5c04<\/p>\n<ul>\n<li><strong>\u6781\u9ad8\u7684\u5747\u5300\u5ea6<\/strong>\uff1a\u76f8\u6bd4 UV \u5e03\u5c40\uff0c\u516b\u9762\u4f53\u6620\u5c04\u5728\u6574\u4e2a\u6b63\u65b9\u5f62\u533a\u57df\u5185\u7684<strong>\u50cf\u7d20\u5206\u5e03\u975e\u5e38\u5747\u5300<\/strong><\/li>\n<li><strong>\u5b8c\u7f8e\u7684\u786c\u4ef6\u8fc7\u6ee4<\/strong>\uff1a\u5728 2D \u7eb9\u7406\u4e2d\uff0c\u516b\u9762\u4f53\u6620\u5c04\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684Border Padding\u6765\u5904\u7406\u7eb9\u7406\u73af\u7ed5\uff0c\u5f53\u7740\u8272\u5668\u5728 2D \u7eb9\u7406\u4e0a\u8fdb\u884c\u53cc\u7ebf\u6027\u91c7\u6837\u65f6\uff0c\u5373\u4f7f\u8de8\u8d8a\u4e86\u516b\u9762\u4f53\u7684\u8fb9\u7f18\uff0c\u901a\u8fc7 Padding \u8865\u5168\u7684\u50cf\u7d20\u4e5f\u80fd\u4fdd\u8bc1\u63d2\u503c\u7ed3\u679c\u5728\u6570\u5b66\u4e0a\u662f\u8fde\u7eed\u7684<\/li>\n<li><strong>\u8ba1\u7b97\u5f00\u9500\u6781\u4f4e<\/strong>\uff1a\u53ea\u9700\u8981\u51e0\u884c\u57fa\u7840\u7684\u4ee3\u6570\u8fd0\u7b97\uff08\u7edd\u5bf9\u503c\u3001\u52a0\u51cf\u6cd5\uff09\uff0c\u4e0d\u9700\u8981\u590d\u6742\u7684\u4e09\u89d2\u51fd\u6570\uff08\u5982 <code>sin<\/code>, <code>cos<\/code>, <code>atan2<\/code>\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\u5b9e\u73b0\u516b\u9762\u4f53\u6620\u5c04\n<pre><code class=\"line-numbers\">float2 SignNotZero(float2 v)\n{\n  return float2((v.x &gt;= 0.0) ? +1.0 : -1.0, (v.y &gt;= 0.0) ? +1.0 : -1.0);\n}\n\n\/\/ 3D dir normalize to [-1, 1]\nfloat2 OctEncode(float3 n)\n{\n  n \/= (abs(n.x) + abs(n.y) + abs(n.z));\n  float2 result = n.xy;\n  if (n.z &lt; 0.0)\n  {\n      result = (1.0 - abs(result.yx)) * SignNotZero(result);\n  }\n  return result;\n}\n\n\/\/ [-1, 1] to normalized 3D dir\nfloat3 OctDecode(float2 f)\n{\n  float3 n = float3(f.x, f.y, 1.0 - abs(f.x) - abs(f.y));\n  float t = saturate(-n.z);\n  n.xy += (n.xy &gt;= 0.0) ? -t : t;\n  return normalize(n);\n}\n<\/code><\/pre>\n<\/li>\n<li>\u8ba1\u7b97\u4e8c\u7ef4\u56fe\u4e0a\u7684\u5750\u6807\uff1a\u5149\u5f97\u5230\u516b\u9762\u4f53uv\u5750\u6807\u8fd8\u4e0d\u884c\uff0c\u8fd8\u6ca1\u6709\u786e\u5b9a\u6307\u5b9aprobe\u5728irradiance\u4e0a\u7684\u4f4d\u7f6e\n<ol>\n<li>\u5f52\u4e00\u5316\u516b\u9762\u4f53uv\n<pre><code class=\"line-numbers\">float2 normalizedOctUV = octUV * 0.5 + 0.5;\n<\/code><\/pre>\n<\/li>\n<li>\u786e\u5b9aprobe\u7684\u884c\u5217\u4f4d\u7f6e\n<p>probe\u662f 3D \u7684\uff0c\u4f46\u7eb9\u7406\u662f 2D \u7684\u3002\u9700\u8981\u5c06\u4e00\u7ef4\u7684 <code>probeIndex<\/code> \u5c55\u5e73\u6210\u4e8c\u7ef4\u5e03\u5c40\uff0c\u4ece\u800c\u627e\u5230<strong>probe\u57282D\u91cc\u662f\u7b2c\u51e0\u5217\u7b2c\u51e0\u884c<\/strong><\/p>\n<pre><code class=\"line-numbers\">uint probeX = probeIndex % (uint)gridDims.x;\nuint probeY = probeIndex \/ (uint)gridDims.x;\n<\/code><\/pre>\n<\/li>\n<li>\u8ba1\u7b97probe\u5757\u5185\u7684\u8d77\u59cb\u5750\u6807\n<p>\u7531\u4e8e2d\u56fe\u5185\u7684probe\u5757\u6709\u6548\u4fe1\u606f\u662f6x6\uff0c\u4f46\u4e0a\u4e0b\u5de6\u53f3\u9700\u8981\u591a\u589e\u52a0\u4e00\u4e2apixel\uff0c\u9632\u6b62\u53cc\u7ebf\u6027\u63d2\u503c\u5f97\u5230\u7684\u4e0d\u51c6\u786e\u7684\u4fe1\u606f\uff0c\u56e0\u6b64<strong>(probeRes + 2.0)\u5f97\u5230probe\u5757\u7684\u5c3a\u5bf8\uff0c+ 1.0\u907f\u5f00\u6700\u8fb9\u7f18\u76841pixel<\/strong><\/p>\n<pre><code class=\"line-numbers\">\/\/ probeRes = 6\nfloat2 probeTopLeft = float2(probeX, probeY) * (probeRes + 2.0) + 1.0;\n<\/code><\/pre>\n<\/li>\n<li>\u6839\u636e\u8d77\u59cb\u5750\u6807\u3001\u516b\u9762\u4f53uv\u5b9a\u4f4d\u5f53\u524dprobe\u5757\u8ba1\u7b97\u7684pixel\n<pre><code class=\"line-numbers\">float2 pixelPos = probeTopLeft + normalizedOctUV * probeRes;\n<\/code><\/pre>\n<\/li>\n<li>\u8f6c\u6362\u5230\u5168\u5c40 UV \u7a7a\u95f4\n<pre><code class=\"line-numbers\">float2 atlasSize = float2(gridDims.x, gridDims.y * gridDims.z) * (probeRes + 2.0);\npixelPos \/ atlasSize\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u7b80\u5355\u7684\u6d4b\u8bd5\n<p>\u7b80\u5355\u7684\u8ba1\u7b97\u4e00\u4e0b\uff0c\u8ba92d RT \u56fe\u4e2d\u6bcf\u4e2a\u5750\u6807\u7684\u989c\u8272\u503c\u90fd\u4e0d\u540c\uff0c\u5e76\u5728debug\u4e2d\u6839\u636e\u516b\u9762\u4f53\u7684uv\u5750\u6807\u3001probe index\u8ba1\u7b972d\u56fe\u4e2d\u7684uv\u5750\u6807\uff0c\u91c7\u68372d\u56fe<\/p>\n<p>\u4e0b\u56fe\u7b2c\u4e00\u5f20\u4e3a2d\u56fe\uff0c\u7b2c\u4e8c\u5f20\u662f\u91c7\u68372d\u56fe\u7684\u6548\u679c<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/69861ea8ebc140ce3fa16623.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><br \/ >\n<noscript><img decoding=\"async\" src=\"https:\/\/pic1.imgdb.cn\/item\/69861ea8ebc140ce3fa16623.png\" alt=\"\" \/><br \/><\/noscript>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/69861eefebc140ce3fa16629.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:\/\/pic1.imgdb.cn\/item\/69861eefebc140ce3fa16629.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<\/ul>\n<h2>DXR BLAS TLAS<\/h2>\n<ul>\n<li>\n<p>\u76ee\u7684\uff1a\u4f17\u6240\u5468\u77e5\u5149\u8ffd\u662f\u4e00\u4e2a\u975e\u5e38\u8017\u65f6\u5f97\u8fc7\u7a0b\uff0c\u4e3a\u4e86\u4f18\u5316\u5149\u8ffd\u7684\u6027\u80fd\u6d88\u8017\uff0cDX12\u7279\u610f\u63a8\u51fa\u4e86DXR\uff0c\u7528\u4e8e\u52a0\u901f\u5feb\u7ebf\u8ffd\u8e2a\uff0c\u5176\u4e2d\u7684\u6838\u5fc3\u4fbf\u662fBLAS\u3001TLAS<\/p>\n<\/li>\n<li>\n<p>\u4ec0\u4e48\u662fBLAS TLAS<\/p>\n<ul>\n<li>BLAS (Bottom-Level Acceleration Structure)\uff1a<strong>\u5e95\u5c42\u52a0\u901f\u7ed3\u6784<\/strong>\u3002\u4e00\u79cd\u52a0\u901f\u7ed3\u6784\uff0c\u7c7b\u4f3cBVH<\/li>\n<li>\u5b58\u50a8\u4f4d\u7f6e\uff1a\u7531\u4e8ebuild BLAS\u975e\u5e38\u8017\u65f6\uff0c\u53ea\u6784\u5efa\u4e00\u6b21\uff0c\u56e0\u6b64\u4e00\u822c\u5b58\u50a8\u4e8e\u6bcf\u4e2amesh<\/li>\n<li>\u5b58\u50a8\u6570\u636e\uff1avertex\u3001index<\/li>\n<li>TLAS\uff08Top-Level Acceleration Structure\uff09\uff1a<strong>\u9876\u5c42\u52a0\u901f\u7ed3\u6784<\/strong>\u3002TLAS\u57fa\u4e8eBLAS build<\/li>\n<li>\u5b58\u50a8\u4f4d\u7f6e\uff1a\u7531\u4e8e\u6bcf\u4e00\u5e27\u90fd\u53ef\u4ee5\u5feb\u901f build TLAS\uff0c\u56e0\u6b64\u5b58\u50a8\u4e8e\u6bcf\u4e2a\u6e32\u67d3instance<\/li>\n<li>\u5b58\u50a8\u6570\u636e\uff1a<strong>BLAS \u7684\u5f15\u7528\u3001world matrix\u3001InstanceID\u3001\u63a9\u7801\uff08Mask\uff09<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u4f55\u8fd0\u4f5c\n<ol>\n<li>ray\u5148\u4e0e TLAS \u7684\u5305\u56f4\u76d2\u6c42\u4ea4\uff0c\u786e\u5b9aray\u53ef\u80fdhit\u7684instance<\/li>\n<li>\u5982\u679chit\u4e86\u67d0\u4e2ainstance\uff0cray\u4f1a\u901a\u8fc7\u8be5instance\u7684<strong>\u201c\u9006\u53d8\u6362\u77e9\u9635\u201d\u8f6c\u6362\u5230\u5c40\u90e8\u7a7a\u95f4<\/strong>\uff0c\u7136\u540e\u4e0e\u5bf9\u5e94\u7684 BLAS \u6c42\u4ea4\uff0c\u786e\u5b9a\u649e\u51fb\u5230\u7684<strong>\u4e09\u89d2\u5f62<\/strong><\/li>\n<\/ol>\n<\/li>\n<li>\u603b\u7ed3<\/p>\n<\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<th>\u7279\u6027<\/th>\n<th>BLAS<\/th>\n<th>TLAS<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5b58\u50a8\u5185\u5bb9<\/td>\n<td>vertex\u3001index<\/td>\n<td>instance id\u3001world matrix\u3001BLAS \u7684\u5f15\u7528\u3001Mask<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u9891\u7387<\/td>\n<td>\u6781\u4f4e(\u5e95\u5c42mesh\u6539\u53d8\u624d\u66f4\u65b0)<\/td>\n<td>\u6781\u9ad8\uff08\u6bcf\u5e27\u66f4\u65b0\uff0c\u5904\u7406\u4f4d\u79fb\/\u65cb\u8f6c\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58\u5360\u7528<\/td>\n<td>\u8f83\u5927\uff08\u53d6\u51b3\u4e8e\u6a21\u578b\u590d\u6742\u5ea6\uff09<\/td>\n<td>\u8f83\u5c0f\uff08\u53d6\u51b3\u4e8e\u573a\u666finstance\u4e2a\u6570\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u6784\u5efa\u5f00\u9500<\/td>\n<td>\u6602\u8d35<\/td>\n<td>\u5ec9\u4ef7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Ray Tracing<\/h2>\n<ul>\n<li>\n<p>\u76ee\u7684\uff1a\u8bb0\u5f55\u4e0e\u5c04\u7ebf\u76f8\u4ea4\u7684pixel\u989c\u8272\u3001\u8ddd\u79bb<\/p>\n<\/li>\n<li>\n<p>\u7b97\u6cd5<\/p>\n<ul>\n<li>\u786e\u5b9aprobe<\/p>\n<\/li>\n<li>\n<p>\u751f\u6210<strong>\u5747\u5300\u5206\u5e03<\/strong>\u7684\u5c04\u7ebf<\/p>\n<\/li>\n<\/ul>\n<p>\u4f7f\u7528DXR\u81ea\u5e26\u7684\"<strong>raygeneration<\/strong>\"shader\uff0c\u5176\u4e2d\u81ea\u5e26\u7684<strong>TraceRay<\/strong>\u53ef\u4ee5\u53d1\u51fa\u5c04\u7ebf<\/p>\n<p>\u751f\u6210\u5c04\u7ebf\u7684\u65b9\u5f0f\u4f7f\u7528 low discrepancy spherical Fibonacci\uff0c\u4e14\u6bcf\u5e27\u65cb\u8f6c\u907f\u514d\u8d70\u6837<\/p>\n<ul>\n<li>\u5224\u65ad\u5c04\u7ebf\u662f\u5426\u76f8\u4ea4<\/p>\n<\/li>\n<li>\n<p>\u76f8\u4ea4\uff1a\u91cd\u5fc3\u5750\u6807\u63d2\u503c\uff0c\u8ba1\u7b97\u9700\u8981\u7684<strong>Ray Data<\/strong>\uff08radiance\u3001distance\uff09\uff0c\u8fd4\u56deRay Data<\/p>\n<p>\u6ce8\u610f\uff1a\u9700\u8981\u5904\u7406<strong>hit back face<\/strong>\u7684\u60c5\u51b5\uff0cnormal\u9700\u8981\u53cd\u5411<\/p>\n<p>\u5148\u8003\u8651\u76f4\u63a5\u5149\uff0cshadow\u3001\u95f4\u63a5\u5149\u540e\u7eed\u52a0\u5165<\/p>\n<\/li>\n<li>\n<p>\u4e0d\u76f8\u4ea4\uff1a\u8fd4\u56de\u65e0\u6548\u4fe1\u606f\uff08radiance\u4e3a0\u3001distance\u4e3a\u4e00\u4e2a\u7279\u522b\u5927\u7684\u503c\uff09<\/p>\n<\/li>\n<li>\n<p>\u5c06Ray Trace\u7ed3\u679c\u5199\u5165GBuffer<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5982\u679c\u5c06radiance\u3001distance\u53ef\u89c6\u5316\u4e3a\u5c04\u7ebf\uff0c\u5c04\u7ebf\u672c\u8eab\u7684\u989c\u8272\u8868\u793aradiance\uff0c\u5c04\u7ebf\u957f\u77ed\u8868\u793adistance\uff1b\u5982\u679c\u60f3\u770b\u6bcf\u4e2a\u5f97\u5230\u7684Ray Tracing\u662f\u5426\u5408\u7406\u6b63\u786e\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e00\u4e2a\u7c7b\u4f3cunity probe\u7684\u529f\u80fd\uff0c\u4e0d\u96be\u5f97\u5230\u5982\u4e0b\u7ed3\u679c\uff1a<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/698e156e1d67521e9b4a10ef.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:\/\/pic1.imgdb.cn\/item\/698e156e1d67521e9b4a10ef.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<\/ul>\n<h2>Irradiance Map<\/h2>\n<ul>\n<li>\n<p>\u76ee\u7684\uff1a\u4e3a\u4e86\u540e\u7eed\u91c7\u6837probe\u4e14\u5c3d\u53ef\u80fd\u4f18\u5316\u6027\u80fd\uff0c\u9700\u8981\u5c06\u6240\u6709probe\u7684Ray Data\u5b58\u50a8\u5728\u4e00\u5f20Irradiance Map\u4e0a\uff0c\u6bcf\u4e2aprobe\u7684Ray Data\u5927\u5c0f\u53606*6pixel\uff08\u6f2b\u53cd\u5c04\u662f\u4f4e\u9891\u4fe1\u606f\uff09<\/p>\n<\/li>\n<li>\n<p>\u7b97\u6cd5<\/p>\n<ul>\n<li>\u5c063\u7ef4\u63a2\u9488\u7ec4\u5e73\u94fa\u52302\u7ef4<\/p>\n<\/li>\n<li>\n<p><code>Dispatch<\/code> \u7684 Z\u5927\u5c0f\u662f\u6709\u9650\u5236\u7684\uff0c<strong>X\/Y **\uff1a\u901a\u5e38\u6700\u5927\u652f\u6301 **65,535<\/strong>\uff0c\u4f46<strong>Z<\/strong>\u6700\u5927\u652f\u630164<\/p>\n<\/li>\n<li>\n<p>\u6613\u4e8e\u8ba1\u7b97probeIndex<\/p>\n<\/li>\n<li>\n<p>\u8ba1\u7b97\u516b\u9762\u4f53uv<\/p>\n<\/li>\n<li>\n<p>\u7531\u4e8e\u6bcf\u4e2aprobe\u7684Ray Data\u5927\u5c0f\u6709\u6548\u7a7a\u95f4\u53ea\u67096x6\uff0c\u5de6\u53f3\u4e0a\u4e0b\u5404\u81ea\u591a\u51fa\u76841pixel\u7528\u4e8e\u9632\u6b62\u8fb9\u7f18\u53cc\u7ebf\u6027\u63d2\u503c\u7684\u9519\u8bef\u7ed3\u679c\uff0c\u9700\u8981\u8ba1\u7b97\u6709\u6548\uff08\u53ea\u5305\u542b6x6\uff09\u7684<strong>oct(\u516b\u9762\u4f53)uv<\/strong><\/p>\n<\/li>\n<li>\n<p>\u57fa\u4e8eoct uv\u8ba1\u7b97\u7403\u9762\u65b9\u5411<strong>probeDirection<\/strong><\/p>\n<\/li>\n<li>\n<p>\u8ba1\u7b97irradiance<\/p>\n<\/li>\n<li>\n<p>\u65e2\u7136\u662f\u8ba1\u7b97irradiance\uff0c\u90a3\u80af\u5b9a\u662f\u8ba1\u7b97\u534a\u7403\u4e0a\u7684\u79ef\u5206\uff0c\u53c8\u56e0\u4e3aRay Tracing\u7684\u7ed3\u679c\u662f\u7a00\u758f\u7684\uff0c\u9700\u8981\u8fdb\u884c\u5e73\u6ed1\u5426\u5219\u4f1a\u6709\u566a\u70b9\uff0c\u6240\u4ee5\u9700\u8981\u6bcf\u4e2a\u5c04\u7ebf\u4e0eprobeDirection\u7684\u6743\u91cd\uff0c\u6700\u540e\u52a0\u6743\u5e73\u5747<\/p>\n<p>\u516c\u5f0f\uff1a<span class=\"katex math inline\">E(probeDirection) = \\int_\u03a9 L(rayDir) * max(0, dot(probeDirection, rayDir)) drayDir<\/span><\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699e8717fd73d871e62c663e.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:\/\/pic1.imgdb.cn\/item\/699e8717fd73d871e62c663e.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<li>\n<p>TAA<\/p>\n<\/li>\n<\/ul>\n<p>\u56e0\u4e3airradiance\u8ba1\u7b97\u5728compute shader\uff0c\u53ef\u4ee5\u65e0\u9700\u989d\u5916pass\u6267\u884c\u65f6\u95f4\u6ee4\u6ce2<\/p>\n<\/li>\n<li>\n<p>\u6548\u679c<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/698ebf2706a66cedfb323cd0.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:\/\/pic1.imgdb.cn\/item\/698ebf2706a66cedfb323cd0.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<\/ul>\n<h2>Distance Map<\/h2>\n<ul>\n<li>\u76ee\u7684\uff1a\u4e0eIrradiance map\u4e00\u6837\uff0c\u53ea\u662f\u5b58\u50a8\u7684\u662fDistance<\/li>\n<li>\u7b97\u6cd5\uff1a\u5927\u90e8\u5206\u4e0eIrradiance map\u76f8\u540c\uff0c\u4e0d\u540c\u5728\u4e8eweight\u8ba1\u7b97<\/li>\n<\/ul>\n<h2>\u91c7\u6837Irradiance<\/h2>\n<ul>\n<li>\n<p>\u76ee\u7684\uff1a\u5c06GI\u52a0\u5165\u5149\u7167\u8ba1\u7b97<\/p>\n<\/li>\n<li>\n<p>\u7b97\u6cd5<\/p>\n<ul>\n<li>\u8ba1\u7b97postionWS\u5728\u63a2\u9488\u7f51\u683c\u4e2d\u7684\u5750\u6807<\/p>\n<\/li>\n<li>\n<p>\u4e0e\u5468\u56f4\u516b\u4e2aprobe(2x2x2)\u505atrilinear<\/p>\n<\/li>\n<li>\n<p>\u4e3a\u4e86\u65b9\u4fbf\u8ba1\u7b97\u5c06\u516b\u4e2aprobe index<span class=\"katex math inline\">[0-7]<\/span>\u4ece\u4e00\u7ef4\u53d8\u6362\u5230\u4e09\u7ef4\uff0c\u5bf9\u5e94\u4e09\u7ef4\u7a7a\u95f4\u4e0b\u7684probe index<span class=\"katex math inline\">[(0,0,0)\uff0c(1,1,1)]<\/span><\/p>\n<p><span class=\"katex math inline\">offset = int3(i, i >> 1, i >> 2) \\&amp; int3(1, 1, 1)<\/span><\/p>\n<\/li>\n<li>\n<p>\u8ba1\u7b97\u6bcf\u4e2aprobe\u7684positionWS in \u63a2\u9488\u7f51\u683c<\/p>\n<pre><code class=\"line-numbers\">float3 biasPositionWS = positionWS + surfaceBias;\n\nfloat3 gridCoord = GetGridCoord(biasPositionWS, gridOrigin, gridSpacing);\nint3 baseProbeCoords = floor(gridCoord);\nfloat3 alpha = frac(gridCoord);\n<\/code><\/pre>\n<\/li>\n<li>Warp Shading(<strong>Backface weight<\/strong>)\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699e9f86fd73d871e62cb909.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:\/\/pic1.imgdb.cn\/item\/699e9f86fd73d871e62cb909.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u7531\u4e8e\u91c7\u6837\u70b9\u9644\u8fd1\u76848\u4e2aprobe\uff0c\u6709\u4e9bprobe\u53ef\u80fd\u4e0d\u8be5\u7ed9\u91c7\u6837\u70b9\u6709\u8d21\u732e\uff0c\u5982\u5899\u58c1\u80cc\u540e\uff08\u4f1a\u5bfc\u81f4\u6f0f\u5149\uff09\uff0c\u56e0\u6b64\u9700\u8981<strong>\u5254\u9664\u4e0enormal \u89d2\u5ea6\u76f8\u5dee\u5927\u4e8e180\u7684<\/strong><\/p>\n<p>\u516c\u5f0f\uff1a<span class=\"katex math inline\">(dot(DirPointToProbe,NormalSurface)+1.0)\u00d70.5<\/span><\/p>\n<p><strong>\u5b8c\u5168\u6b63\u9762<\/strong>\u2014\u2014\u70b9\u79ef\u4e3a 1\uff0c\u6743\u91cd\u6700\u5927\uff1b<strong>\u4fa7\u9762<\/strong>\u2014\u2014\u70b9\u79ef\u4e3a 0\uff0c\u4f9d\u7136\u4fdd\u7559\u4e00\u90e8\u5206\u6743\u91cd\uff08\u7ea6 0.5\uff09\uff1b<strong>\u5b8c\u5168\u80cc\u9762<\/strong>\u2014\u2014\u70b9\u79ef\u4e3a -1\uff0c\u6743\u91cd\u964d\u4e3a 0<\/p>\n<\/li>\n<li>\n<p>\u8ba1\u7b97trilinear weight<\/p>\n<pre><code class=\"line-numbers\">int3 offset = int3(i, i &gt;&gt; 1, i &gt;&gt; 2) &amp; int3(1, 1, 1);\nfloat3 trilinear = lerp(1.0 - alpha, alpha, (float3)offset);\nfloat trilinearWeight = trilinear.x * trilinear.y * trilinear.z;\n<\/code><\/pre>\n<ul>\n<li>offset\uff1a<code>offset = (0, 0, 0)<\/code> \u4ee3\u8868\u5de6\u4e0b\u524d\u65b9\u7684\u63a2\u9488\uff0c<code>offset = (1, 1, 1)<\/code> \u4ee3\u8868\u53f3\u4e0a\u540e\u65b9\u7684\u63a2\u9488<\/li>\n<li>alpha\uff1aalpha\u8d8a\u63a5\u8fd10\uff0c\u8d8a\u504f\u5411offset0\u7684\u90e8\u5206\uff0c\u53cd\u6b63\u8d8a\u504f\u5411offset1\u7684\u90e8\u5206<\/li>\n<li>trilinear\uff1a\u4e4b\u6240\u4ee5\u662f<strong>lerp(1.0 - alpha, alpha, (float3)offset)<\/strong>\uff0c\u5f53offset\u4e3a0\u65f6\uff0clerp\u5f97\u52301.0 - alpha\uff0calpha\u8d8a\u63a5\u8fd10\uff0coffset0\u7684\u6743\u91cd\u8d8a\u5927\uff1b\u5f53offset\u4e3a1\u65f6\uff0clerp\u5f97\u5230alpha\uff0calpha\u8d8a\u63a5\u8fd10\uff0coffset0\u7684\u6743\u91cd\u8d8a\u5c0f\uff0coffset1\u6743\u91cd\u8d8a\u5927<\/li>\n<li>trilinearWeight\uff1a\u5f53\u524dprobe\u5bf9\u5468\u56f4\u516b\u4e2aprobe\u7684\u6743\u91cd<\/li>\n<\/ul>\n<\/li>\n<li>\u8ba1\u7b97oct uv\n<p>\u4f7f\u7528normalWS\u4f5c\u4e3aprobe dir<\/p>\n<\/li>\n<li>\n<p>\u6620\u5c04probe position WS->irradiance atlasPos<\/p>\n<pre><code class=\"line-numbers\">uint2 atlasPos = uint2(adjCoords.x, adjCoords.y + adjCoords.z * gridDimensions.y);\nfloat2 octantCoordsIrr = OctEncode(normalWS);\nuv = (octantCoordsIrr * 0.5f + 0.5f) * (DDGI_PROBE_NUM_TEXELS - 2.f) + 1.0f;\nfinalUV = (float2(atlasPos * DDGI_PROBE_NUM_TEXELS) + uv) * irradianceTexSize.zw;\n<\/code><\/pre>\n<\/li>\n<li>\u91c7\u6837irradiance\uff0c\u52a0\u6743\u5e73\u5747\n<pre><code class=\"line-numbers\">float3 probeColor = SampleTexture2D_LOD(irradianceTexIndex, finalUV, linearClampSampler, 0).rgb;\nprobeColor = pow(probeColor, exponent);\n\nsumIrradiance += probeColor * weight;\nsumWeight += weight;\n\nfloat3 finalIrradiance = sumIrradiance \/ sumWeight;\nfinalIrradiance *= finalIrradiance;\nfinalIrradiance *= TWO_PI;\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u5207\u96ea\u6bd4\u592b\u8ba1\u7b97\u906e\u6321<\/h2>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699e9a8dfd73d871e62c8ef5.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:\/\/pic1.imgdb.cn\/item\/699e9a8dfd73d871e62c8ef5.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u7ea2\u8272\u5706\u73af\u8868\u793aprobe\uff0c\u7070\u8272\u8868\u793ageometry\uff0c\u7eff\u8272\u8868\u793aprobe\u53d1\u51fa\u7684\u5149\u7ebf\uff0c\u5176\u4e2d\uff0cprobe\u5b58\u50a8<span class=\"katex math inline\">\\sum r\u3001\\sum r^2<\/span><\/p>\n<p>\u6700\u7ec8\u8ba1\u7b97sample\u65f6\uff0c\u7528probe\u5b58\u50a8\u7684\u8ddd\u79bb\u4fe1\u606f\uff0c\u6765\u8ba1\u7b97\u65b9\u5dee<span class=\"katex math inline\">\u03c3<\/span><\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699ea752fd73d871e62cb9dc.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:\/\/pic1.imgdb.cn\/item\/699ea752fd73d871e62cb9dc.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u5173\u4e8e<span class=\"katex math inline\">\\frac{1}{n}<\/span>\uff0c\u53ef\u4ee5\u63d0\u524d\u5230 ray trace\u65f6\uff0c\u76f8\u52a0r\u6700\u540e\u5e73\u5747<\/p>\n<h1>LIMITATIONS &amp; CONTINUING WORK<\/h1>\n<ul>\n<li><strong>Low-frequency<\/strong>\n<ul>\n<li>\u95ee\u9898<\/li>\n<li>DDGI \u53ea\u80fd\u6a21\u62df<strong>\u53d8\u5316\u5e73\u7f13\u3001\u5927\u9762\u79ef\u8986\u76d6<\/strong>\u7684\u95f4\u63a5\u5149\u7167\uff0c\u65e0\u6cd5\u6355\u6349\u9510\u5229\u7684\u9634\u5f71\u6216\u5fae\u5c0f\u7684\u53cd\u5149\u7ec6\u8282<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3<\/p>\n<\/li>\n<li>\u8fd9\u610f\u5473\u7740AO\u3001\u9ad8\u5149\u53cd\u5c04DDGI\u65e0\u6cd5\u6a21\u62df\uff0c\u9700\u8981\u7528\u5c4f\u5e55\u7a7a\u95f4ao\u3001\u5c4f\u5e55\u7a7a\u95f4\u53cd\u5c04\u6765\u5b9e\u73b0\uff0c<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Thin corridors &amp; sharp corners<\/strong><\/p>\n<ul>\n<li>\u95ee\u9898<\/li>\n<li>Thin corridors\uff08\u72ed\u7a84\u7684\u8d70\u5eca\uff09\uff1a\u5bfc\u81f4\u4e24\u4e2a\u5899\u58c1\u95f4\u6ca1\u6709\u4efb\u4f55probe\uff0c\u5bfc\u81f4\u8fd9\u91cc\u7684\u5149\u7167\u770b\u7740\u4e0d\u8fde\u7eed\uff0c\u5f88\u5947\u602a<\/li>\n<li>sharp corners\uff08\u5c16\u9510\u6b7b\u89d2\uff09\uff1aShading Point\u5468\u56f48 \u4e2a\u63a2\u9488\u6709\u53ef\u80fd\u5206\u5e03\u5728\u5899\u4f53\u7684\u4e0d\u540c\u4fa7 \u3002\u867d\u7136Chebyshev Test\u53ef\u4ee5\u5254\u9664\u5899\u540e\u7684\u63a2\u9488\uff0c\u4f46\u5982\u679c\u5899\u89d2\u8fc7\u4e8e\u5c16\u9510\uff0c\u53ef\u80fd\u5bfc\u81f4\u5468\u56f4\u6240\u6709\u63a2\u9488\u90fd\u88ab\u5224\u5b9a\u4e3a\u4e0d\u53ef\u89c1\uff0c\u4ece\u800c\u4ea7\u751f\u9ed1\u5757\u6216\u5149\u7167\u65ad\u5c42<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3<\/p>\n<\/li>\n<li>\u5bf9\u4e8eThin corridors &amp; sharp corners\u5207\u6362SSGI shade\uff0c\u800cSSGI\u7528\u4e8e\u5927\u8303\u56f4\u7684\u5149\u7167<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Probes just inside walls<\/strong><\/p>\n<ul>\n<li>\u95ee\u9898<\/li>\n<li>\u7531\u4e8eGrid\u662f\u5747\u5300\u5206\u5e03\u7684\uff0c<strong>\u67d0\u4e9bprobe\u53ef\u80fd\u4f1a\u5904\u4e8e\u51e0\u4f55\u4f53\u5185<\/strong>\uff0c\u4ece\u800c\u5bfc\u81f4<strong>Shadow Leak<\/strong>\n<ul>\n<li><strong>\u91c7\u96c6\u504f\u9ed1<\/strong>\uff1aprobe\u5904\u4e8e\u51e0\u4f55\u4f53\u5185\uff0c\u4f1a\u5bfc\u81f4ray trace hit\u7684\u9762\u90fd\u662f\u80cc\u9762\uff0c\u8ba1\u7b97\u5b58\u50a8\u7684irradiance\u504f\u9ed1<\/li>\n<li><strong>\u63d2\u503c\u51fa\u9519<\/strong>\uff1a\u82e5\u63d2\u503c\u4f4d\u4e8e\u51e0\u4f55\u4f53\u5185\u7684probe\uff0c\u4f1a\u63d2\u503c\u5230\u9519\u8bef\u7684irradiance<\/li>\n<\/ul>\n<\/li>\n<li>\u89e3\u51b3<\/li>\n<li><strong>Probe Relocation<\/strong>\n<ul>\n<li>\u901a\u8fc7\u68c0\u6d4b\u80cc\u9762\u51fb\u4e2d\u7387\u627e\u51fa\u51e0\u4f55\u4f53\u5185\u7684probe\uff0c\u5c06\u8fd9\u4e9b\u63a2\u9488\u987a\u7740\u5c04\u7ebf\u53cd\u5411\u63a8\u51fa\u5899\u4f53<\/li>\n<\/ul>\n<\/li>\n<li><strong>Probe Classification<\/strong>\n<ul>\n<li>Probe Relocation\u4e0d\u80fd\u8ba9\u6240\u6709\u51e0\u4f55\u4f53\u5185\u7684probe\u90fd\u80fd\u63a8\u51fa\u5899\u4f53\uff0c\u5bf9\u4e8e\u8fd9\u4e9bprobe\uff0c\u6807\u4e0a\u6807\u8bb0\uff0c\u540e\u7eedshade\u3001sample\u65f6\u5b8c\u5168\u8df3\u8fc7<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>Convergence rate (faster \u2192 more rays \u2192 lower hysteresis)<\/strong>\n<ul>\n<li>\u95ee\u9898<\/li>\n<li>\u7531\u4e8e DDGI \u4f7f\u7528\u4e86\u65f6\u95f4\u6ee4\u6ce2\uff0c\u5982\u679c\u5149\u7167\u53d1\u751f\u5267\u53d8\uff0cDDGI\u901a\u5e38\u9700\u8981\u6570\u5e27\u65f6\u95f4\u624d\u80fd\u66f4\u65b0\u5b8c\u6210 \uff0c\u800c\u4e0d\u662f\u77ac\u65f6\u7684<\/li>\n<li>\u89e3\u51b3<\/li>\n<li>\u66f4\u591a\u7684ray\uff1a\u5982\u679c\u5355\u5e27\u7684ray\u8db3\u591f\u591a\uff0c\u7ed3\u679c\u5c31\u8d8a\u51c6\u786e\uff0c\u5c31\u4e0d\u518d\u9700\u8981\u66f4\u591a\u7684\u65f6\u95f4\u6ee4\u6ce2\u5e73\u6ed1\u753b\u9762<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>\u4f18\u5316<\/h1>\n<h2>Self-Shadow Bias &amp; Backface Hit<\/h2>\n<ul>\n<li><strong>Self-Shadow Bias<\/strong>\n<ul>\n<li>\u95ee\u9898\uff1a\u5f53\u5728\u7269\u4f53surface\u5904\u67e5\u8be2Probe\u65f6\uff0cvariance in the visibility estimate\uff08\u53ef\u89c1\u6027\u4f30\u8ba1\u7684\u65b9\u5dee\uff09\u5728\u5206\u5e03\u5747\u503c\u9644\u8fd1\u6700\u9ad8\u2014\u2014\u6362\u53e5\u8bdd\u8bf4\uff0c\u5c31\u5728surface\uff0c\u82e5\u65b9\u5dee\u8d8a\u9ad8\u4f1a\u5bfc\u81f4\u5207\u96ea\u6bd4\u592b\u8d8a\u5927\uff0c\u4ece\u800c\u4f7f\u5f97\u906e\u6321\u7387\u8d8a\u9ad8<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3<\/p>\n<\/li>\n<li>\n<p>\u901a\u8fc7\u624b\u52a8\u504f\u79fb shade point position\uff0c\u4f7f\u5f97r\u589e\u5927\uff0c\u4ece\u800c\u8ba1\u7b97\u7684\u906e\u6321\u7387\u964d\u4f4e<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699ea752fd73d871e62cb9dc.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:\/\/pic1.imgdb.cn\/item\/699ea752fd73d871e62cb9dc.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<li>\n<p>\u516c\u5f0f\uff1a<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699ed127fd73d871e62e16cb.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><br \/ >\n<noscript><img decoding=\"async\" src=\"https:\/\/pic1.imgdb.cn\/item\/699ed127fd73d871e62e16cb.png\" alt=\"\" \/><br \/><\/noscript>\n\u5176\u4e2d\uff1a<\/p>\n<p>n\u4e3anormal<\/p>\n<p><span class=\"katex math inline\">\u03c9_0<\/span>\u4e3aview dir<\/p>\n<p>\u5982\u679cprobe grid\u662f\u5747\u5300\u7684\uff0c<strong>MIN_DISTANCE_BETWEEN_PROBES<\/strong>\u4e3a1\uff1b\u53cd\u4e4b\uff0cMIN_DISTANCE_BETWEEN_PROBES\u53d6\u4e09\u4e2a\u7ef4\u5ea6\u7684min<\/p>\n<p><strong>TunableShadowBias<\/strong>\uff1a\u4e00\u822c\u4e3a0.3\uff08\u8bba\u6587\u4e2d\u63d0\u5230\u8be5\u503c\u5927\u591a\u6570\u60c5\u51b5\u8868\u73b0\u90fd\u6bd4\u8f83\u597d\uff09<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Backface Hit<\/strong><\/p>\n<ul>\n<li>\u4e3a\u4e86\u8fdb\u4e00\u6b65\u51cf\u5c11\u6f0f\u5149\uff0c\u51fb\u4e2d\u80cc\u9762\u7684\u63a2\u9488\u66f4\u65b0\u8bb0\u5f55\u503c\u7684irradiance\u4e3a0\uff0c\u4e14distance\u7f29\u77ed <span class=\"katex math inline\">80\\%<\/span>\u3002 <strong>\u7f29\u77eddistance\u53ef\u4ee5\u786e\u4fdd\u63a2\u9488\u5c06\u80cc\u9762\u89c6\u4e3a\u88ab\u9634\u5f71\u906e\u6321\uff0c\u4ece\u800c\u4e0d\u7167\u4eae\u5b83\u4eec<\/strong>\uff0c\u4f46\u4e3a\u4ec0\u4e48\u4e0d\u5c06distance\u8bbe\u4e3a0\u5462\uff1f<\/li>\n<li>\u8bbe\u4e3a0\u4f1a\u4f7f\u5f97<strong>\u5207\u6bd4\u96ea\u592b\u6743\u91cd\u8d8b\u5411\u4e8e <span class=\"katex math inline\">0<\/span><\/strong>\uff0c\u5f53\u6743\u91cd\u5f52\u4e00\u5316\u65f6\uff0c\u8be5\u503c\u53ef\u80fd\u4f1a\u88ab\u63a8\u5f97\u66f4\u9ad8<\/li>\n<li>probes that see some backfaces but are not stuck in walls (due to modeling idiosyncrasies) could have overly skewed average depths<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Perception-based Exponential Encoding<\/h2>\n<ul>\n<li>\u95ee\u9898\n<p>\u5982\u679cirradiance probe\u7684\u6536\u655b\u5f88\u6162\uff0c\u573a\u666f\u4e2d\u5267\u70c8\u7684\u5149\u7167\u53d8\u5316\u4f1a\u5bfc\u81f4\u660e\u663e\u7684\u6ede\u540e\uff0c\u5c24\u5176\u662f\u4ece\u4eae\u5230\u6697<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3<\/p>\n<ul>\n<li>\u4e3airradiance\u5e94\u7528<strong>\u57fa\u4e8e\u611f\u77e5\u7684\u6307\u6570gamma\u7f16\u7801<\/strong>\uff1a\u8be5\u7f16\u7801\u4ee5\u611f\u77e5\u7ebf\u6027\u63d2\u503c\u65b9\u5f0f\uff0c\u52a0\u901f\u7531\u4eae\u5230\u6697\u7684\u6536\u655b<\/li>\n<\/ul>\n<p>\u7531\u4e8e\u4eba\u773c\u5bf9\u6697\u90e8\u7684\u611f\u77e5\u66f4\u4e3a\u654f\u611f\uff0c\u76f4\u63a5\u5728\u5206\u91cf\u7a7a\u95f4\u505a\u7ebf\u6027\u6df7\u5408\u4f1a\u5bfc\u81f4\u5728\u53d8\u6697\u8fc7\u7a0b\u4e2d\u80fd\u91cf\u4e0b\u964d\u8fc7\u6162\uff0c\u611f\u89c9\u6709\u6b8b\u5f71\uff1b\u4f7f\u7528 <span class=\"katex math inline\">x^{1\/5}<\/span> \u7f16\u7801\u540e\uff0c\u80fd\u91cf\u5728\u6df7\u5408\u8fc7\u7a0b\u4e2d\u7684\u4e0b\u964d\u66f2\u7ebf\u4f1a\u66f4\u7b26\u5408\u4eba\u773c\u611f\u77e5\u7684\u7ebf\u6027\u5ea6<\/p>\n<p>\u5b9e\u9a8c\u5f97\u51fa\uff0cgamma\u4e3a5\u6548\u679c\u662f\u6700\u597d\u7684<\/p>\n<p>\u751a\u81f3\u53ef\u4ee5\u51cf\u5c11<strong>\u4f4e\u9891\u95ea\u70c1<\/strong>\uff0c\u8fd9\u662f\u7531<strong>fireflies<\/strong>\uff08\u7531\u4e8e\u66f4\u65b0\u5149\u7ebf\u51fb\u4e2d\u5c0f\u4e14\u4eae\u7684irradiance\uff0c\u5f15\u8d77diffuse GI\u7684\u660e\u4eae\u95ea\u5149\uff09\u5f15\u8d77<\/p>\n<pre><code class=\"line-numbers\">netIrradiance = pow(netIrradiance, 1.0f \/ g_DDGIEncodingGamma);\n<\/code><\/pre>\n<pre><code class=\"line-numbers\">for (int i = 0; i &lt; 8; ++i):\n    float3 probeColor = SampleTexture2D_LOD(irradianceTexIndex, finalUV, linearClampSampler, 0).rgb;\n    probeColor = pow(probeColor, gamma * 0.5f);\nprobeColor = Pow2(probeColor);\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>Fast Convergence Heuristics<\/h2>\n<ul>\n<li>\u95ee\u9898\n<p>\u76ee\u524dhysteresis\u662f\u4e00\u4e2a\u56fa\u5b9a\u503c\uff0c\u4f46\u5bf9\u5e94\u4e0d\u540c\u7684\u5149\u7167\u53d8\u5316\uff0c\u56fa\u5b9a\u7684hysteresis\u4e0d\u80fd\u6ee1\u8db3\u9700\u6c42<\/p>\n<p>\u6bd4\u5982\uff0chysteresis\u5f88\u9ad80.97\uff0cGI\u6548\u679c\u5f88\u5e73\u6ed1\u6ca1\u95ee\u9898\uff0c\u5982\u679c\u706f\u5149\u7184\u706d\uff0c\u573a\u666f\u4eae\u5ea6\u9700\u8981\u5feb\u901f\u4ece\u4eae\u5230\u6697\uff0c\u4f46\u7531\u4e8ehysteresis\u5f88\u9ad8\uff0c\u5927\u591a\u6570\u6570\u636e\u662f\u4ece\u5386\u53f2\u5e27\u83b7\u53d6\u7684\uff0c\u5bfc\u81f4\u6536\u655b\u5f88\u6162\uff1b\u5982\u679chysteresis\u5f88\u4f4e\uff0c\u867d\u7136\u6536\u655b\u5f88\u5feb\uff0c\u4f46\u4e0d\u597d\u6291\u5236\u566a\u70b9\uff0c\u4e14\u4f1a\u5f71\u54cd\u53ef\u89c1\u6027\uff0c\u5bfc\u81f4\u6f0f\u5149<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3<\/p>\n<p>\u9700\u8981\u4e00\u4e2a\u52a8\u6001\u7684hysteresis\u6ee1\u8db3\u591a\u79cd\u9700\u6c42<\/p>\n<p>\u4f4e\u9608\u503c\u4f1a\u68c0\u6d4b\u91cf\u503c\u8d85\u8fc7\u6700\u5927\u503c 25% \u7684\u53d8\u5316\uff0c\u5c06\u6ede\u540e\u7cfb\u6570\uff08hysteresis\uff09\u964d\u4f4e 0.15\u3002\u9ad8\u9608\u503c\u68c0\u6d4b\u91cf\u503c\u8d85\u8fc7 80% \u7684\u53d8\u5316\uff0c\u5c06\u6ede\u540e\u7cfb\u6570\u76f4\u63a5\u964d\u4f4e\u81f3 0.0\uff0c\u5373\u5b8c\u5168\u4e0d\u4fe1\u4efb\u5386\u53f2\u5e27<\/p>\n<p>\u8fd8\u53ef\u4ee5\u9488\u5bf9<strong>\u5149\u7167\u6216\u51e0\u4f55\u53d8\u5316<\/strong>\u8c03\u6574\u6ede\u540e\u7cfb\u6570\uff1a<\/p>\n<ul>\n<li>\u5c0f\u578b\u5149\u7167\u53d8\u5316\uff08\u624b\u7535\u7b52\u6253\u5f00\uff09\uff1a\u5c06\u8f90\u7167\u5ea6\u6ede\u540e\u7cfb\u6570\u964d\u4f4e 15%\uff0c\u6301\u7eed\u56db\u5e27<\/li>\n<li>\u5927\u578b\u5149\u7167\u53d8\u5316\uff08\u65f6\u95f4\u5267\u53d8\uff09\uff1a\u5c06\u8f90\u7167\u5ea6\u6ede\u540e\u7cfb\u6570\u964d\u4f4e 50%\uff0c\u6301\u7eed 10 \u5e27<\/li>\n<li>\u5927\u578b\u7269\u4f53\u53d8\u5316\uff08\u5929\u82b1\u677f\u584c\u9677\uff09\uff1a\u5c06\u8f90\u7167\u5ea6\u6ede\u540e\u7cfb\u6570\u964d\u4f4e 50% \u5e76\u6301\u7eed 10 \u5e27\uff0c\u540c\u65f6\u5c06\u53ef\u89c1\u6027\u6ede\u540e\u7cfb\u6570\u964d\u4f4e 50% \u5e76\u6301\u7eed 7 \u5e27<\/li>\n<\/ul>\n<pre><code class=\"line-numbers\">float significantChangeThreshold = 0.25f;\nfloat newDistributionChangeThreshold = 0.25f;\n\nfloat changeMagnitude = DDGIMaxComponent(netIrradiance - historyIrradiance);\nif (abs(changeMagnitude) &gt; significantChangeThreshold)\n{\nhysteresis = max(0, hysteresis - 0.15f);\n}\nif (abs(changeMagnitude) &gt; newDistributionChangeThreshold)\n{\nhysteresis = 0.f;\n}\n<\/code><\/pre>\n<p>\u5982\u679c\u5305\u542bTAA\uff0chysteresis\u53ef\u4ee5\u66f4\u4f4e<\/p>\n<\/li>\n<\/ul>\n<h2>Probe-position Adjustment<\/h2>\n<ul>\n<li>\n<p>\u95ee\u9898<\/p>\n<p>\u63a2\u9488\u53ef\u89c1\u6027\u4fe1\u606f\u53ef\u4ee5\u9632\u6b62\u88ab\u906e\u6321\u63a2\u9488\u4ea7\u751f\u6f0f\u5149\u548c\u6f0f\u5f71\uff0c\u4f46\u4e5f\u4f1a\u5bfc\u81f4\u67d0\u4e9b\u63a2\u9488\u5904\u4e8e\u5b8c\u5168\u906e\u6321\u72b6\u6001\uff0c\u5bfc\u81f4\u9519\u8bef\u7684\u6e32\u67d3\u6548\u679c\uff0c\u5c24\u5176\u662fDDGI\u662f\u52a8\u6001\u7684\uff0cprobe\u4f1a\u8ddf\u7740\u76f8\u673a\u79fb\u52a8\uff0c\u4e0d\u80fd\u9884\u5148\u624b\u52a8\u6446\u653eprobe<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699f2377fd73d871e63114ba.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:\/\/pic1.imgdb.cn\/item\/699f2377fd73d871e63114ba.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<li>\n<p>\u89e3\u51b3<\/p>\n<p>nvidia\u63d0\u51fa\u4e00\u79cd\u5728\u9759\u6001\u51e0\u4f55\u4f53\u5468\u56f4\u8fed\u4ee3\u5730\u79fb\u52a8\u63a2\u9488\uff0c\u4ee5\u6700\u5927\u9650\u5ea6\u5730\u589e\u52a0\u6709\u7528\u63a2\u9488\u7684\u6570\u91cf\u5e76\u751f\u6210\u826f\u597d\u7684\u89c2\u5bdf\u70b9\u7684\u65b9\u6cd5<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699f23f8fd73d871e6311820.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:\/\/pic1.imgdb.cn\/item\/699f23f8fd73d871e6311820.png\" alt=\"\" \/><\/p><\/noscript>\n<p>\u5177\u4f53\u601d\u8def\uff1a<\/p>\n<ul>\n<li>probe\u53d1\u5c04\u5149\u7ebf\uff0c\u8bb0\u5f55\u5149\u7ebf\u662f\u5426\u6253\u4e2d\u80cc\u9762<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528backFaceCount\u8bb0\u5f55\u6253\u4e2d\u80cc\u9762\u7684\u6b21\u6570\uff0c\u5e76\u7edf\u8ba1probe\u5230\u80cc\u9762\u7684\u6700\u8fd1\u8ddd\u79bbclosestBackfaceDist\u3001\u5230\u6b63\u9762\u7684\u6700\u8fd1\u8ddd\u79bbclosestFrontfaceDist\u3001\u5230\u6b63\u9762\u7684\u6700\u8fdc\u8ddd\u79bbfarthestFrontfaceDist<\/p>\n<\/li>\n<li>\n<p>\u8ba1\u7b97\u6253\u4e2d\u80cc\u9762\u7684\u6b21\u6570\uff0c\u662f\u5426\u5927\u4e8e\u8bbe\u5b9a\u7684\u9608\u503c<strong>PROBE_BACKFACE_THRESHOLD<\/strong>\uff0c\u5927\u4e8e\u5219\u8ba4\u5b9a\u8be5probe\u5728\u5899\u5185<\/p>\n<\/li>\n<li>\n<p>\u5927\u4e8e\uff0c\u5219\u504f\u79fb\u5f53\u524dprobe\u5230\u6700\u8fd1\u80cc\u9762\uff08\u5c06probe\u63a8\u5411\u8ddd\u79bb\u6700\u8fd1\u7684\u9762\uff09<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/69a44f36ac80c84bfd1729cf.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:\/\/pic1.imgdb.cn\/item\/69a44f36ac80c84bfd1729cf.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<li>\n<p>\u5c06probe\u63a8\u5411\u8ddd\u79bb\u6700\u8fd1\u7684\u9762\u540e\uff0c\u8fd8\u9700\u8981\u5c06probe\u5728\u5411\u5916\u63a8\u4e00\u4e9b\uff0c\u548c\u5176\u4ed6\u7269\u4f53\u7559\u4e00\u4e9b\u8ddd\u79bb\uff0c\u8fd9\u4e2a\u8ddd\u79bb\u8bbe\u5b9a\u4e3aPROBE_MIN_FRONTFACE_DISTANCE<\/p>\n<\/li>\n<li>\n<p>\u82e5probe\u5230\u6b63\u9762\u7684\u6700\u8fd1\u8ddd\u79bbclosestFrontfaceDist\u5c0f\u4e8ePROBE_MIN_FRONTFACE_DISTANCE\uff0c\u5219\u7ee7\u7eed\u5c06probe\u5411\u5916\u63a8<\/p>\n<p>\u9700\u8981\u8ba1\u7b97probe\u5230\u6700\u8fd1\u6b63\u9762\u7684dir\u548c\u5230\u6700\u8fdc\u6b63\u9762\u7684dir\uff0c\u5f53\u8fd9\u4e24\u4e2adir\u7684\u5939\u89d2\u5927\u4e8e90\u00b0\u65f6\uff0c\u624d\u5141\u8bb8\u79fb\u52a8\uff08\u907f\u514d\u5728\u72ed\u7a84\u7684\u5939\u7f1d\u91cc\uff0c\u8fdc\u79bba\u9762\u7684\u540c\u65f6\uff0c\u53c8\u649e\u8fdbb\u9762\uff09<\/p>\n<\/li>\n<li>\n<p>\u82e5probe\u5230\u6b63\u9762\u7684\u6700\u8fd1\u8ddd\u79bbclosestFrontfaceDist\u5927\u4e8ePROBE_MIN_FRONTFACE_DISTANCE\uff0c\u5219\u7ee7\u7eed\u5c06probe\u5411\u6b63\u9762\u63a8<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/69a44d44ac80c84bfd1725fc.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:\/\/pic1.imgdb.cn\/item\/69a44d44ac80c84bfd1725fc.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Probe States<\/h2>\n<ul>\n<li>\n<p>\u95ee\u9898<\/p>\n<p>\u5373\u4f7f\u5bf9probe position\u8fdb\u884c\u4e86\u8c03\u6574\uff0c\u67d0\u4e9bprobe\u4f9d\u65e7\u4e0d\u4f1a\u5bf9irradiance\u6709\u6240\u8d21\u732e\uff0c\u8fd9\u90e8\u5206\u8ba1\u7b97\u662f\u65e0\u6548\u7684\uff0c\u5e94\u8be5\u8df3\u8fc7\uff0c\u95ee\u9898\u5728\u4e8e\u5982\u4f55\u9ad8\u6548\u4e14\u7a33\u5b9a\u5730\u8df3\u8fc7<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3<\/p>\n<p>nvidia\u4f7f\u7528\u4e86\u72b6\u6001\u673a\u7684\u601d\u60f3\uff0c\u5f15\u5165\u4e86\u4e00\u5957\u7a33\u5065\u7684\u63a2\u9488\u72b6\u6001\uff0c\u4ee5\u907f\u514d\u5bf9\u8fd9\u4e9b\u63a2\u9488\u8fdb\u884c\u5149\u7ebf\u8ffd\u8e2a\u6216\u66f4\u65b0\uff0c\u4ece\u800c\u5728\u4fdd\u6301\u76f8\u540c\u89c6\u89c9\u6548\u679c\u7684\u540c\u65f6\u63d0\u5347\u6027\u80fd<\/p>\n<p><strong>\u5c06\u4e0d\u5e94\u66f4\u65b0\u7684\u63a2\u9488\u4e0e\u5fc5\u987b\u66f4\u65b0\u7684\u63a2\u9488\u533a\u5206\u5f00\u6765\uff0c\u5e76\u589e\u52a0\u4e86\u4e00\u4e2a\u989d\u5916\u7684\u4e2d\u95f4\u72b6\u6001\uff0c\u7528\u4e8e\u8bc6\u522b\u521a\u521a\u51fa\u73b0\u7684\u63a2\u9488<\/strong>\uff08\u573a\u666f\u521d\u59cb\u5316\u3001probe\u79fb\u52a8\uff09\uff0c\u5e76\u8c03\u6574Hysteresis<\/p>\n<p><img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699f2c93fd73d871e6315dbe.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><br \/ >\n<noscript><img decoding=\"async\" src=\"https:\/\/pic1.imgdb.cn\/item\/699f2c93fd73d871e6315dbe.png\" alt=\"\" \/><br \/><\/noscript>\n\u5176\u4e2d\uff0c<span class=\"katex math inline\">\\alpha<\/span> \u662f\u5f53\u524d\u5e27\u7684hysteresis\uff1b<span class=\"katex math inline\">\\alpha'<\/span> \u662f\u573a\u666f\u7684\u9ed8\u8ba4hysteresis<\/p>\n<ul>\n<li>\u5bf9\u4e8e<strong>\u9759\u6001\u51e0\u4f55\u4f53\u5185\u90e8<\/strong>\u7684probe\u8bbe\u4e3a<strong>\u201coff\u201d (never trace or update)<\/strong><\/p>\n<\/li>\n<li>\n<p>\u5904\u4e8e\u9759\u6001\u51e0\u4f55\u4f53\u5916\u90e8\u7684probe\u4e5f\u4e0d\u662f\u6bcf\u5e27\u90fd\u8981\u66f4\u65b0\uff0c\u5f53<strong>probe\u9644\u8fd1\u4e00\u4e2aprobeSpacing\u5185\u6ca1\u6709\u4efb\u4f55\u9759\u6001\u51e0\u4f55\u4f53<\/strong>\uff0c\u8fd9\u79cdprobe\u8bbe\u4e3a\u201c<strong>Sleeping<\/strong>\u201d<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u53ea\u6709\u5f53probeSpacing\u5185\u6709\u9759\u6001\u51e0\u4f55\u4f53\u65f6\uff0c\u624d\u5524\u9192\uff0c\u8bbe\u4e3a\u201cAwake\u201d<\/strong><\/p>\n<\/li>\n<li>\n<p>\u7b97\u6cd5<\/p>\n<ol>\n<li>\u5bf9\u4e8e\u672a\u521d\u59cb\u5316\u7684probe\uff0c\u5149\u7ebf\u8ffd\u8e2a\u9700\u8981\u4e94\u5e27\uff0c\u7528\u4e8e\u786e\u5b9a\u6700\u4f18\u7684\u4f4d\u7f6e\u548c\u521d\u59cb\u5316\u72b6\u6001\u3002\u5728\u8fd9\u4e2apass\u6700\u540e\uff0c\u6240\u6709\u5148\u524d\u672a\u521d\u59cb\u5316\u7684probe\u8bbe\u4e3a\u201cNewly Vigilant,\u201d \u201cOff,\u201d or \u201cSleeping\u201d<\/li>\n<\/ol>\n<ul>\n<li>\u8fd9\u4e00\u6b65\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u9759\u6001\u7269\u4f53\u7684AABB\u6765\u5feb\u901f\u52a0\u901f\uff0c\u56e0\u4e3a\u53ef\u4ee5\u76f4\u63a5\u6839\u636eAABB\u6765\u8c03\u6574probe\uff0c\u800c\u65e0\u9700\u4f9d\u9760distance\u548cbackface\u7684\u6570\u636e\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u8bb8\u591a\u63a2\u9488\u53ef\u4ee5\u5feb\u901f\u8bbe\u4e3a\u201cNewly Vigilant\u201d\uff0c\u4f46\u5149\u7ebf\u8ffd\u8e2a\u4ecd\u662f\u9700\u8981\u7684\uff0c\u6765\u5224\u5b9a\u54ea\u4e9b\u63a2\u9488\u5e94\u8bbe\u4e3a\u201cOff\u201d<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699fd925d9fa54ce3f141c1d.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:\/\/pic1.imgdb.cn\/item\/699fd925d9fa54ce3f141c1d.png\" alt=\"\" \/><\/p><\/noscript>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>\n<p>\u6240\u6709\u52a8\u6001\u7269\u4f53\u7684 AABB\uff08\u8f74\u5bf9\u9f50\u5305\u56f4\u76d2\uff09\u6269\u5927\u4e00\u4e2a\u63a2\u9488\u7f51\u683c\u5355\u5143\u5bbd\u5ea6\u52a0\u4e0a\u81ea\u9634\u5f71\u504f\u79fb\u91cf\uff0c\u4f5c\u4e3a\u4fdd\u5b88\u4f30\u8ba1\uff0c\u4f4d\u4e8e\u52a8\u6001\u7269\u4f53\u6269\u5927\u540e\u7684 AABB \u5185\u7684\u6240\u6709\u201cSleep\u201d\u63a2\u9488\u8bbe\u4e3a\u201cNewly Awake\u201d<\/p>\n<\/li>\n<li>\n<p>\uff08\u53ef\u9009\uff09\u3002\u5bf9\u4e8e\u201cNewly Vigilant\u201d\u3001\u201cNewly Awake\u201d\u72b6\u6001\u7684probe\uff0c\u4f7f\u7528\u5927\u91cf\u5149\u7ebf\u5e76\u5c06hysteresis\u8bbe\u4e3a0\uff0c\u5728\u4e00\u5e27\u5185\u5bf9\u8fd9\u4e9bprobes\u5feb\u901f\u6536\u655b\uff0c\u7136\u540e\u8bbe\u4e3a \u201cVigilant\u201d\u548c\u201cAwake\"<\/p>\n<\/li>\n<li>\n<p>\u5982\u679cTrace rays\u7684\u5bf9\u8c61\u662f\u201cVigilant\u201d\u3001\u201cAwake\u201d\u7684probe\uff0c\u5219\u4f7f\u7528\u573a\u666f\u9ed8\u8ba4\u7684hysteresis\u66f4\u65b0\u4ed6\u4eec\u7684\u6570\u636e<\/p>\n<p>\u5982\u679c\u7701\u7565\u7b2c\u4e09\u6b65\uff0c\u8fd9\u4e00\u6b65\u540c\u6837\u9002\u5408\u4e8e\u201cNewly Vigilant\u201d\u3001\u201cNewly Awake\u201dprobe<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u6ce8\u610f<\/p>\n<ul>\n<li>\u5bf9\u4e8e\u53c2\u4e0e\u4ecb\u8d28\uff08Participating media\uff0c\u5982\u96fe\uff09\uff0c\u867d\u7136\u5b83\u4e0d\u662f\u9759\u6001\u51e0\u4f55\u4f53\uff0c\u4f46\u4ecd\u9700\u8981\u8bbe\u4e3a\u201cAwake\u201d<\/li>\n<\/ul>\n<\/li>\n<li>\u6536\u76ca\n<p>\u4f7f\u7528probe\u72b6\u6001\u673a\u53ef\u4ee5\u5e26\u4e8630-50%\u7684\u6027\u80fd\u6536\u76ca\uff0cprobe\u53ef\u4ee5\u53d1\u5c04\u66f4\u591a\u7684\u5149\u7ebf\uff0c\u4e14\u53ef\u4ee5\u4f7f\u7528\u66f4\u4f4e\u7684hysteresis\u4ee5\u5feb\u901f\u6536\u655b<br \/>\n<img decoding=\"async\"   class=\"lazyload\" data-src=\"https:\/\/pic1.imgdb.cn\/item\/699fdb10d9fa54ce3f141c3f.png\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\" \/><br \/ >\n<noscript><img decoding=\"async\" src=\"https:\/\/pic1.imgdb.cn\/item\/699fdb10d9fa54ce3f141c3f.png\" alt=\"\" \/><br \/><\/noscript>\n\u5176\u4e2d\uff0c\u201cBaseline\u201d\u4e3a\u4e0d\u4f7f\u7528\u63a2\u9488\u4f11\u7720\u7684\u8017\u65f6\uff0c\u201cEqual Quality\u201d\u3001\u201cTime Saved\u201d\u4e3a\u767e\u5206\u6bd4\u548c\u65f6\u95f4\u7684\u8282\u7701\uff0c\"Better Quality\"\u4e3a\u5339\u914dBaseline\u7684\u524d\u63d0\u4e0b\uff0c\u589e\u52a0\u6d3b\u8dc3\u63a2\u9488\u7684\u5149\u7ebf\u6570\u91cf\u5e26\u6765\u7684\u753b\u8d28\u63d0\u5347<\/p>\n<\/li>\n<\/ul>\n<h2>GPGPU<\/h2>\n<ul>\n<li>\n<p>\u76ee\u7684<\/p>\n<p>\u901a\u8fc7\u4f7f\u7528\u901a\u7528 GPGPU\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u5feb\u7684\u66f4\u65b0\uff0c\u5c06\u4f20\u5165\u7684\u7740\u8272\u91c7\u6837\u5149\u7ebf\u547d\u4e2d\u70b9\u5b58\u50a8\u5728\u5171\u4eab\u5185\u5b58\uff08Shared Memory\/LDS\uff09\uff0c\u4ee5\u4fbf\u6240\u6709\u7ebf\u7a0b\u5e76\u884c\u8bfb\u53d6<\/p>\n<\/li>\n<\/ul>\n<h1>Reference<\/h1>\n<p>DDGI: DYNAMIC DIFFUSE GLOBAL ILLUMINATION WITH RAY-TRACED IRRADIANCE FIELDS<\/p>\n<p>Deep G-Buffers for Stable Global Illumination Approximation<\/p>\n<p>Scaling Probe-Based Real-Time Dynamic Global Illumination for Production<\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/search.bilibili.com\/all?vt=74086063&amp;keyword=%E5%91%BD%E8%BF%90%E6%89%B3%E6%9C%BA%20usf&amp;from_source=webtop_search&amp;spm_id_from=333.1007&amp;search_source=5\" target=\"_blank\"  rel=\"nofollow\" >[UFSH2025]\u300a\u547d\u8fd0\u6273\u673a\u300b\u7684\u5149\u4e0e\u5f71<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 DDGI (Dynamic Diffuse Global Illumination)\uff0c\u540d\u53eb\u52a8\u6001\u6f2b\u53cd\u5c04\u5168\u5c40\u5149\u7167\uff0c\u8fd9\u662f\u7531NVID &#8230;<\/p>","protected":false},"author":1,"featured_media":353,"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\/352"}],"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=352"}],"version-history":[{"count":3,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":357,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/posts\/352\/revisions\/357"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=\/wp\/v2\/media\/353"}],"wp:attachment":[{"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/chenglixue.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}