JoinNode.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JoinNode - 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">JoinNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This module is part of the TSL core and usually not used in app level code.
  17. It represents a join operation during the shader generation process.
  18. For example in can compose/join two single floats into a <code>vec2</code> type.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="JoinNode" translate="no">new <a href="#JoinNode">JoinNode</a><span class="signature">( nodes : <span class="param-type">Array.&lt;Node></span>, nodeType : <span class="param-type">string</span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new join node.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name"><code>nodes</code></td>
  32. <td class="description last"><p>An array of nodes that should be joined.</p></td>
  33. </tr>
  34. <tr>
  35. <td class="name"><code>nodeType</code></td>
  36. <td class="description last"><p>The node type.<br/>Default is <code>null</code>.</p></td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. </div>
  41. </div>
  42. <h2 class="subsection-title">Properties</h2>
  43. <div class="member">
  44. <h3 class="name" id="nodes" translate="no">.<a href="#nodes">nodes</a><span class="type-signature"> : Array.&lt;<a href="Node.html">Node</a>></span> </h3>
  45. <div class="description">
  46. <p>An array of nodes that should be joined.</p>
  47. </div>
  48. </div>
  49. <h2 class="subsection-title">Methods</h2>
  50. <h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : string</span> </h3>
  51. <div class="method">
  52. <div class="description">
  53. <p>This method is overwritten since the node type must be inferred from the
  54. joined data length if not explicitly defined.</p>
  55. </div>
  56. <table class="params">
  57. <tbody>
  58. <tr>
  59. <td class="name"><code>builder</code></td>
  60. <td class="description last"><p>The current node builder.</p></td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. <dl class="details">
  65. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="TempNode.html#getNodeType">TempNode#getNodeType</a></dt>
  66. </dl>
  67. <dl class="details">
  68. <dt class="tag-returns"><strong>Returns:</strong> The node type.</dt>
  69. </dl>
  70. </div>
  71. <h2 class="subsection-title">Source</h2>
  72. <p>
  73. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/JoinNode.js" target="_blank" rel="noopener" translate="no">src/nodes/utils/JoinNode.js</a>
  74. </p>
  75. </article>
  76. </section>
  77. <script src="../scripts/linenumber.js"></script>
  78. <script src="../scripts/page.js"></script>
  79. </body>
  80. </html>
粤ICP备19079148号