FullScreenQuad.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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">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">Material</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"><code>material</code></td>
  37. <td class="description last"><p>The material to render te full screen quad with.</p></td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. </div>
  43. <h2 class="subsection-title">Properties</h2>
  44. <div class="member">
  45. <h3 class="name" id="material" translate="no">.<a href="#material">material</a><span class="type-signature"> : <a href="Material.html">Material</a></span> </h3>
  46. <div class="description">
  47. <p>The quad's material.</p>
  48. </div>
  49. <dl class="details">
  50. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Mesh.html#material">Mesh#material</a></dt>
  51. </dl>
  52. </div>
  53. <h2 class="subsection-title">Methods</h2>
  54. <h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
  55. <div class="method">
  56. <div class="description">
  57. <p>Frees the GPU-related resources allocated by this instance. Call this
  58. method whenever the instance is no longer used in your app.</p>
  59. </div>
  60. </div>
  61. <h3 class="name name-method" id="render" translate="no">.<a href="#render">render</a><span class="signature">( renderer : <span class="param-type">WebGLRenderer</span> )</span> </h3>
  62. <div class="method">
  63. <div class="description">
  64. <p>Renders the full screen quad.</p>
  65. </div>
  66. <table class="params">
  67. <tbody>
  68. <tr>
  69. <td class="name"><code>renderer</code></td>
  70. <td class="description last"><p>The renderer.</p></td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. </div>
  75. <h2 class="subsection-title">Source</h2>
  76. <p>
  77. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/postprocessing/Pass.js" target="_blank" rel="noopener" translate="no">examples/jsm/postprocessing/Pass.js</a>
  78. </p>
  79. </article>
  80. </section>
  81. <script src="../scripts/linenumber.js"></script>
  82. <script src="../scripts/page.js"></script>
  83. </body>
  84. </html>
粤ICP备19079148号