RecurrentDenoiseNode.html 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>RecurrentDenoiseNode - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → <a href="TempNode.html">TempNode</a> → </p>
  13. <h1 translate="no">RecurrentDenoiseNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Post processing node for denoising temporally-accumulated screen-space effects
  17. such as SSGI (ambient occlusion / indirect diffuse) and SSR (specular reflections).</p>
  18. <p>The denoising kernel is selected at construction time via <code>mode</code>:
  19. <code>'diffuse'</code> (SSGI) or <code>'specular'</code> (SSR). The kernel uses a fixed 8-sample Vogel disk.</p></div>
  20. </header>
  21. <article>
  22. <h2 class="subsection-title">Import</h2>
  23. <p><span translate="no">RecurrentDenoiseNode</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
  24. <pre><code class="language-js">import { recurrentDenoise } from 'three/addons/tsl/display/RecurrentDenoiseNode.js';</code></pre>
  25. <div class="container-overview">
  26. <h2>Constructor</h2>
  27. <h3 class="name name-method" id="RecurrentDenoiseNode" translate="no">new <a href="#RecurrentDenoiseNode">RecurrentDenoiseNode</a><span class="signature">( inputTexture : <span class="param-type"><a href="TextureNode.html">TextureNode</a></span>, camera : <span class="param-type"><a href="Camera.html">Camera</a></span>, options : <span class="param-type"><a href="global.html#RecurrentDenoiseNodeOptions">RecurrentDenoiseNodeOptions</a></span> )</span> </h3>
  28. <div class="method">
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name">
  33. <strong translate="no">inputTexture</strong>
  34. </td>
  35. <td class="description last">
  36. <p>Temporally filtered input to denoise (e.g. TRAA output).</p>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="name">
  41. <strong translate="no">camera</strong>
  42. </td>
  43. <td class="description last">
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="name">
  48. <strong translate="no">options</strong>
  49. </td>
  50. <td class="description last">
  51. <p>Default is <code>{}</code>.</p>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </div>
  57. </div>
  58. <h2 class="subsection-title">Properties</h2>
  59. <div class="member">
  60. <h3 class="name" id="accumulate" translate="no">.<a href="#accumulate">accumulate</a><span class="type-signature"> : boolean</span> </h3>
  61. <div class="description">
  62. <p>When <code>true</code>, apply temporal blending after spatial denoising. When <code>false</code>, output spatially
  63. filtered colour only (alpha is passed through from the input temporal pass).</p>
  64. </div>
  65. </div>
  66. <div class="member">
  67. <h3 class="name" id="alphaSource" translate="no">.<a href="#alphaSource">alphaSource</a><span class="type-signature"> : <a href="global.html#DenoiseAlphaSource">DenoiseAlphaSource</a></span> </h3>
  68. <div class="description">
  69. <p>Which channel of the raw texture drives alpha-based edge stopping.
  70. <code>'raylength'</code> — alpha encodes SSR ray length; <code>'ao'</code> — alpha encodes AO factor;
  71. <code>'none'</code> — skip alpha-based edge stopping.</p>
  72. <p>Default is <code>'raylength'</code>.</p>
  73. </div>
  74. </div>
  75. <div class="member">
  76. <h3 class="name" id="mode" translate="no">.<a href="#mode">mode</a><span class="type-signature"> : <a href="global.html#DenoiseMode">DenoiseMode</a></span> </h3>
  77. <div class="description">
  78. <p>Denoising kernel type.</p>
  79. </div>
  80. </div>
  81. <h2 class="subsection-title">Methods</h2>
  82. <h3 class="name name-method" id="getRenderTarget" translate="no">.<a href="#getRenderTarget">getRenderTarget</a><span class="signature">()</span><span class="type-signature"> : <a href="RenderTarget.html">RenderTarget</a></span> </h3>
  83. <div class="method">
  84. <div class="description">
  85. <p>Returns the internal output render target (e.g. for temporal reprojection/SSGI temporal feedback loops).</p>
  86. </div>
  87. </div>
  88. <h2 class="subsection-title">Source</h2>
  89. <p>
  90. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/display/RecurrentDenoiseNode.js" translate="no" target="_blank" rel="noopener">examples/jsm/tsl/display/RecurrentDenoiseNode.js</a>
  91. </p>
  92. </article>
  93. </section>
  94. <script src="../scripts/linenumber.js"></script>
  95. <script src="../scripts/page.js"></script>
  96. </body>
  97. </html>
粤ICP备19079148号