UniformGroupNode.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>UniformGroupNode - 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">UniformGroupNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node can be used to group single instances of <a href="UniformNode.html">UniformNode</a>
  17. and manage them as a uniform buffer.</p>
  18. <p>In most cases, the predefined nodes <code>objectGroup</code>, <code>renderGroup</code> and <code>frameGroup</code>
  19. will be used when defining the <a href="UniformNode.html#groupNode">UniformNode#groupNode</a> property.</p>
  20. <ul>
  21. <li><code>objectGroup</code>: Uniform buffer per object.</li>
  22. <li><code>renderGroup</code>: Shared uniform buffer, updated once per render call.</li>
  23. <li><code>frameGroup</code>: Shared uniform buffer, updated once per frame.</li>
  24. </ul></div>
  25. </header>
  26. <article>
  27. <div class="container-overview">
  28. <h2>Constructor</h2>
  29. <h3 class="name name-method" id="UniformGroupNode" translate="no">new <a href="#UniformGroupNode">UniformGroupNode</a><span class="signature">( name : <span class="param-type">string</span>, shared : <span class="param-type">boolean</span>, order : <span class="param-type">number</span> )</span> </h3>
  30. <div class="method">
  31. <div class="description">
  32. <p>Constructs a new uniform group node.</p>
  33. </div>
  34. <table class="params">
  35. <tbody>
  36. <tr>
  37. <td class="name"><code>name</code></td>
  38. <td class="description last"><p>The name of the uniform group node.</p></td>
  39. </tr>
  40. <tr>
  41. <td class="name"><code>shared</code></td>
  42. <td class="description last"><p>Whether this uniform group node is shared or not.<br/>Default is <code>false</code>.</p></td>
  43. </tr>
  44. <tr>
  45. <td class="name"><code>order</code></td>
  46. <td class="description last"><p>Influences the internal sorting.<br/>Default is <code>1</code>.</p></td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. <h2 class="subsection-title">Properties</h2>
  53. <div class="member">
  54. <h3 class="name" id="isUniformGroup" translate="no">.<a href="#isUniformGroup">isUniformGroup</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  55. <div class="description">
  56. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  57. </div>
  58. </div>
  59. <div class="member">
  60. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  61. <div class="description">
  62. <p>The name of the uniform group node.</p>
  63. </div>
  64. <dl class="details">
  65. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#name">Node#name</a></dt>
  66. </dl>
  67. </div>
  68. <div class="member">
  69. <h3 class="name" id="order" translate="no">.<a href="#order">order</a><span class="type-signature"> : number</span> </h3>
  70. <div class="description">
  71. <p>Influences the internal sorting.
  72. TODO: Add details when this property should be changed.<br/>Default is <code>1</code>.</p>
  73. </div>
  74. </div>
  75. <div class="member">
  76. <h3 class="name" id="shared" translate="no">.<a href="#shared">shared</a><span class="type-signature"> : boolean</span> </h3>
  77. <div class="description">
  78. <p>Whether this uniform group node is shared or not.<br/>Default is <code>false</code>.</p>
  79. </div>
  80. </div>
  81. <h2 class="subsection-title">Source</h2>
  82. <p>
  83. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/UniformGroupNode.js" target="_blank" rel="noopener" translate="no">src/nodes/core/UniformGroupNode.js</a>
  84. </p>
  85. </article>
  86. </section>
  87. <script src="../scripts/linenumber.js"></script>
  88. <script src="../scripts/page.js"></script>
  89. </body>
  90. </html>
粤ICP备19079148号