FullScreenQuad.html 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>FullScreenQuad - 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="Object3D.html">Object3D</a> → <a href="Mesh.html">Mesh</a> → </p>
  13. <h1 translate="no">FullScreenQuad</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This module is a helper for passes which need to render a full
  17. screen effect which is quite common in context of post processing.</p>
  18. <p>The intended usage is to reuse a single full screen quad for rendering
  19. subsequent passes by just reassigning the <code>material</code> reference.</p>
  20. <p>This module can only be used with <a href="WebGLRenderer.html">WebGLRenderer</a>.</p></div>
  21. </header>
  22. <article>
  23. <h2 class="subsection-title">Import</h2>
  24. <p><span translate="no">FullScreenQuad</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>
  25. <pre><code class="language-js">import { FullScreenQuad } from 'three/addons/postprocessing/Pass.js';</code></pre>
  26. <div class="container-overview">
  27. <h2>Constructor</h2>
  28. <h3 class="name name-method" id="FullScreenQuad" translate="no">new <a href="#FullScreenQuad">FullScreenQuad</a><span class="signature">( material : <span class="param-type"><a href="Material.html">Material</a></span> )</span> </h3>
  29. <div class="method">
  30. <div class="description">
  31. <p>Constructs a new full screen quad.</p>
  32. </div>
  33. <table class="params">
  34. <tbody>
  35. <tr>
  36. <td class="name">
  37. <strong>material</strong>
  38. </td>
  39. <td class="description last">
  40. <p>The material to render te full screen quad with.</p>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. </div>
  47. <h2 class="subsection-title">Properties</h2>
  48. <div class="member">
  49. <h3 class="name" id="material" translate="no">.<a href="#material">material</a><span class="type-signature"> : <a href="Material.html">Material</a></span> </h3>
  50. <div class="description">
  51. <p>The quad's material.</p>
  52. </div>
  53. <dl class="details">
  54. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Mesh.html#material">Mesh#material</a></dt>
  55. </dl>
  56. </div>
  57. <h2 class="subsection-title">Methods</h2>
  58. <h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
  59. <div class="method">
  60. <div class="description">
  61. <p>Frees the GPU-related resources allocated by this instance. Call this
  62. method whenever the instance is no longer used in your app.</p>
  63. </div>
  64. </div>
  65. <h3 class="name name-method" id="render" translate="no">.<a href="#render">render</a><span class="signature">( renderer : <span class="param-type"><a href="WebGLRenderer.html">WebGLRenderer</a></span> )</span> </h3>
  66. <div class="method">
  67. <div class="description">
  68. <p>Renders the full screen quad.</p>
  69. </div>
  70. <table class="params">
  71. <tbody>
  72. <tr>
  73. <td class="name">
  74. <strong>renderer</strong>
  75. </td>
  76. <td class="description last">
  77. <p>The renderer.</p>
  78. </td>
  79. </tr>
  80. </tbody>
  81. </table>
  82. </div>
  83. <h2 class="subsection-title">Source</h2>
  84. <p>
  85. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/postprocessing/Pass.js" translate="no" target="_blank" rel="noopener">examples/jsm/postprocessing/Pass.js</a>
  86. </p>
  87. </article>
  88. </section>
  89. <script src="../scripts/linenumber.js"></script>
  90. <script src="../scripts/page.js"></script>
  91. </body>
  92. </html>
粤ICP备19079148号