BatchNode.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>BatchNode - 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> → </p>
  13. <h1 translate="no">BatchNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node implements the vertex shader logic which is required
  17. when rendering 3D objects via batching. <code>BatchNode</code> must be used
  18. with instances of <a href="BatchedMesh.html">BatchedMesh</a>.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="BatchNode" translate="no">new <a href="#BatchNode">BatchNode</a><span class="signature">( batchMesh : <span class="param-type"><a href="BatchedMesh.html">BatchedMesh</a></span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new batch node.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name">
  32. <strong>batchMesh</strong>
  33. </td>
  34. <td class="description last">
  35. <p>A reference to batched mesh.</p>
  36. </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="batchMesh" translate="no">.<a href="#batchMesh">batchMesh</a><span class="type-signature"> : <a href="BatchedMesh.html">BatchedMesh</a></span> </h3>
  45. <div class="description">
  46. <p>A reference to batched mesh.</p>
  47. </div>
  48. </div>
  49. <div class="member">
  50. <h3 class="name" id="batchingIdNode" translate="no">.<a href="#batchingIdNode">batchingIdNode</a><span class="type-signature"> : <a href="IndexNode.html">IndexNode</a></span> </h3>
  51. <div class="description">
  52. <p>The batching index node.</p>
  53. <p>Default is <code>null</code>.</p>
  54. </div>
  55. </div>
  56. <h2 class="subsection-title">Methods</h2>
  57. <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  58. <div class="method">
  59. <div class="description">
  60. <p>Setups the internal buffers and nodes and assigns the transformed vertex data
  61. to predefined node variables for accumulation. That follows the same patterns
  62. like with morph and skinning nodes.</p>
  63. </div>
  64. <table class="params">
  65. <tbody>
  66. <tr>
  67. <td class="name">
  68. <strong>builder</strong>
  69. </td>
  70. <td class="description last">
  71. <p>The current node builder.</p>
  72. </td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. <dl class="details">
  77. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#setup">Node#setup</a></dt>
  78. </dl>
  79. </div>
  80. <h2 class="subsection-title">Source</h2>
  81. <p>
  82. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/BatchNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/BatchNode.js</a>
  83. </p>
  84. </article>
  85. </section>
  86. <script src="../scripts/linenumber.js"></script>
  87. <script src="../scripts/page.js"></script>
  88. </body>
  89. </html>
粤ICP备19079148号