JoinNode.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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;<a href="Node.html">Node</a>></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">
  32. <strong>nodes</strong>
  33. </td>
  34. <td class="description last">
  35. <p>An array of nodes that should be joined.</p>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td class="name">
  40. <strong>nodeType</strong>
  41. </td>
  42. <td class="description last">
  43. <p>The node type.</p>
  44. <p>Default is <code>null</code>.</p>
  45. </td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. <h2 class="subsection-title">Properties</h2>
  52. <div class="member">
  53. <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>
  54. <div class="description">
  55. <p>An array of nodes that should be joined.</p>
  56. </div>
  57. </div>
  58. <h2 class="subsection-title">Methods</h2>
  59. <h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : string</span> </h3>
  60. <div class="method">
  61. <div class="description">
  62. <p>This method is overwritten since the node type must be inferred from the
  63. joined data length if not explicitly defined.</p>
  64. </div>
  65. <table class="params">
  66. <tbody>
  67. <tr>
  68. <td class="name">
  69. <strong>builder</strong>
  70. </td>
  71. <td class="description last">
  72. <p>The current node builder.</p>
  73. </td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. <dl class="details">
  78. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="TempNode.html#getNodeType">TempNode#getNodeType</a></dt>
  79. </dl>
  80. <dl class="details">
  81. <dt class="tag-returns"><strong>Returns:</strong> The node type.</dt>
  82. </dl>
  83. </div>
  84. <h2 class="subsection-title">Source</h2>
  85. <p>
  86. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/JoinNode.js" translate="no" target="_blank" rel="noopener">src/nodes/utils/JoinNode.js</a>
  87. </p>
  88. </article>
  89. </section>
  90. <script src="../scripts/linenumber.js"></script>
  91. <script src="../scripts/page.js"></script>
  92. </body>
  93. </html>
粤ICP备19079148号