QuadMesh.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>QuadMesh - 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">QuadMesh</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 quad mesh for rendering
  19. subsequent passes by just reassigning the <code>material</code> reference.</p>
  20. <p>Note: This module can only be used with <code>WebGPURenderer</code>.</p></div>
  21. </header>
  22. <article>
  23. <div class="container-overview">
  24. <h2>Constructor</h2>
  25. <h3 class="name name-method" id="QuadMesh" translate="no">new <a href="#QuadMesh">QuadMesh</a><span class="signature">( material : <span class="param-type"><a href="Material.html">Material</a></span> )</span> </h3>
  26. <div class="method">
  27. <div class="description">
  28. <p>Constructs a new quad mesh.</p>
  29. </div>
  30. <table class="params">
  31. <tbody>
  32. <tr>
  33. <td class="name">
  34. <strong>material</strong>
  35. </td>
  36. <td class="description last">
  37. <p>The material to render the quad mesh with.</p>
  38. <p>Default is <code>null</code>.</p>
  39. </td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. </div>
  44. </div>
  45. <h2 class="subsection-title">Properties</h2>
  46. <div class="member">
  47. <h3 class="name" id="camera" translate="no">.<a href="#camera">camera</a><span class="type-signature"> : <a href="OrthographicCamera.html">OrthographicCamera</a></span> <span class="type-signature">(readonly) </span></h3>
  48. <div class="description">
  49. <p>The camera to render the quad mesh with.</p>
  50. </div>
  51. </div>
  52. <div class="member">
  53. <h3 class="name" id="isQuadMesh" translate="no">.<a href="#isQuadMesh">isQuadMesh</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  54. <div class="description">
  55. <p>This flag can be used for type testing.</p>
  56. <p>Default is <code>true</code>.</p>
  57. </div>
  58. </div>
  59. <h2 class="subsection-title">Methods</h2>
  60. <h3 class="name name-method" id="render" translate="no">.<a href="#render">render</a><span class="signature">( renderer : <span class="param-type"><a href="Renderer.html">Renderer</a></span> )</span> </h3>
  61. <div class="method">
  62. <div class="description">
  63. <p>Renders the quad mesh</p>
  64. </div>
  65. <table class="params">
  66. <tbody>
  67. <tr>
  68. <td class="name">
  69. <strong>renderer</strong>
  70. </td>
  71. <td class="description last">
  72. <p>The renderer.</p>
  73. </td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. </div>
  78. <h3 class="name name-method" id="renderAsync" translate="no">.<a href="#renderAsync">renderAsync</a><span class="signature">( renderer : <span class="param-type"><a href="Renderer.html">Renderer</a></span> )</span><span class="type-signature"> : Promise</span> <span class="type-signature">(async) </span></h3>
  79. <div class="method">
  80. <div class="description">
  81. <p>Async version of <code>render()</code>.</p>
  82. </div>
  83. <table class="params">
  84. <tbody>
  85. <tr>
  86. <td class="name">
  87. <strong>renderer</strong>
  88. </td>
  89. <td class="description last">
  90. <p>The renderer.</p>
  91. </td>
  92. </tr>
  93. </tbody>
  94. </table>
  95. <dl class="details">
  96. <dt class="important tag-deprecated"><strong>Deprecated:</strong> Yes</dt>
  97. </dl>
  98. <dl class="details">
  99. <dt class="tag-returns"><strong>Returns:</strong> A Promise that resolves when the render has been finished.</dt>
  100. </dl>
  101. </div>
  102. <h2 class="subsection-title">Source</h2>
  103. <p>
  104. <a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/common/QuadMesh.js" translate="no" target="_blank" rel="noopener">src/renderers/common/QuadMesh.js</a>
  105. </p>
  106. </article>
  107. </section>
  108. <script src="../scripts/linenumber.js"></script>
  109. <script src="../scripts/page.js"></script>
  110. </body>
  111. </html>
粤ICP备19079148号