1
0

UniformGroupNode.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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">
  38. <strong>name</strong>
  39. </td>
  40. <td class="description last">
  41. <p>The name of the uniform group node.</p>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="name">
  46. <strong>shared</strong>
  47. </td>
  48. <td class="description last">
  49. <p>Whether this uniform group node is shared or not.</p>
  50. <p>Default is <code>false</code>.</p>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="name">
  55. <strong>order</strong>
  56. </td>
  57. <td class="description last">
  58. <p>Influences the internal sorting.</p>
  59. <p>Default is <code>1</code>.</p>
  60. </td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. </div>
  65. </div>
  66. <h2 class="subsection-title">Properties</h2>
  67. <div class="member">
  68. <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>
  69. <div class="description">
  70. <p>This flag can be used for type testing.</p>
  71. <p>Default is <code>true</code>.</p>
  72. </div>
  73. </div>
  74. <div class="member">
  75. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  76. <div class="description">
  77. <p>The name of the uniform group node.</p>
  78. </div>
  79. <dl class="details">
  80. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#name">Node#name</a></dt>
  81. </dl>
  82. </div>
  83. <div class="member">
  84. <h3 class="name" id="order" translate="no">.<a href="#order">order</a><span class="type-signature"> : number</span> </h3>
  85. <div class="description">
  86. <p>Influences the internal sorting.
  87. TODO: Add details when this property should be changed.</p>
  88. <p>Default is <code>1</code>.</p>
  89. </div>
  90. </div>
  91. <div class="member">
  92. <h3 class="name" id="shared" translate="no">.<a href="#shared">shared</a><span class="type-signature"> : boolean</span> </h3>
  93. <div class="description">
  94. <p>Whether this uniform group node is shared or not.</p>
  95. <p>Default is <code>false</code>.</p>
  96. </div>
  97. </div>
  98. <h2 class="subsection-title">Source</h2>
  99. <p>
  100. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/UniformGroupNode.js" translate="no" target="_blank" rel="noopener">src/nodes/core/UniformGroupNode.js</a>
  101. </p>
  102. </article>
  103. </section>
  104. <script src="../scripts/linenumber.js"></script>
  105. <script src="../scripts/page.js"></script>
  106. </body>
  107. </html>
粤ICP备19079148号