VertexColorNode.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>VertexColorNode - 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="AttributeNode.html">AttributeNode</a> → </p>
  13. <h1 translate="no">VertexColorNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>An attribute node for representing vertex colors.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="VertexColorNode" translate="no">new <a href="#VertexColorNode">VertexColorNode</a><span class="signature">( index : <span class="param-type">number</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new vertex color node.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>index</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The attribute index.</p>
  34. </td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <h2 class="subsection-title">Properties</h2>
  41. <div class="member">
  42. <h3 class="name" id="index" translate="no">.<a href="#index">index</a><span class="type-signature"> : number</span> </h3>
  43. <div class="description">
  44. <p>The attribute index to enable more than one sets of vertex colors.</p>
  45. <p>Default is <code>0</code>.</p>
  46. </div>
  47. </div>
  48. <div class="member">
  49. <h3 class="name" id="isVertexColorNode" translate="no">.<a href="#isVertexColorNode">isVertexColorNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  50. <div class="description">
  51. <p>This flag can be used for type testing.</p>
  52. <p>Default is <code>true</code>.</p>
  53. </div>
  54. </div>
  55. <h2 class="subsection-title">Methods</h2>
  56. <h3 class="name name-method" id="getAttributeName" translate="no">.<a href="#getAttributeName">getAttributeName</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : string</span> </h3>
  57. <div class="method">
  58. <div class="description">
  59. <p>Overwrites the default implementation by honoring the attribute index.</p>
  60. </div>
  61. <table class="params">
  62. <tbody>
  63. <tr>
  64. <td class="name">
  65. <strong>builder</strong>
  66. </td>
  67. <td class="description last">
  68. <p>The current node builder.</p>
  69. </td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. <dl class="details">
  74. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="AttributeNode.html#getAttributeName">AttributeNode#getAttributeName</a></dt>
  75. </dl>
  76. <dl class="details">
  77. <dt class="tag-returns"><strong>Returns:</strong> The attribute name.</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/VertexColorNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/VertexColorNode.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号