VertexColorNode.html 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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"><code>index</code></td>
  30. <td class="description last"><p>The attribute index.</p></td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>
  36. <h2 class="subsection-title">Properties</h2>
  37. <div class="member">
  38. <h3 class="name" id="index" translate="no">.<a href="#index">index</a><span class="type-signature"> : number</span> </h3>
  39. <div class="description">
  40. <p>The attribute index to enable more than one sets of vertex colors.<br/>Default is <code>0</code>.</p>
  41. </div>
  42. </div>
  43. <div class="member">
  44. <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>
  45. <div class="description">
  46. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  47. </div>
  48. </div>
  49. <h2 class="subsection-title">Methods</h2>
  50. <h3 class="name name-method" id="getAttributeName" translate="no">.<a href="#getAttributeName">getAttributeName</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : string</span> </h3>
  51. <div class="method">
  52. <div class="description">
  53. <p>Overwrites the default implementation by honoring the attribute index.</p>
  54. </div>
  55. <table class="params">
  56. <tbody>
  57. <tr>
  58. <td class="name"><code>builder</code></td>
  59. <td class="description last"><p>The current node builder.</p></td>
  60. </tr>
  61. </tbody>
  62. </table>
  63. <dl class="details">
  64. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="AttributeNode.html#getAttributeName">AttributeNode#getAttributeName</a></dt>
  65. </dl>
  66. <dl class="details">
  67. <dt class="tag-returns"><strong>Returns:</strong> The attribute name.</dt>
  68. </dl>
  69. </div>
  70. <h2 class="subsection-title">Source</h2>
  71. <p>
  72. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/VertexColorNode.js" target="_blank" rel="noopener" translate="no">src/nodes/accessors/VertexColorNode.js</a>
  73. </p>
  74. </article>
  75. </section>
  76. <script src="../scripts/linenumber.js"></script>
  77. <script src="../scripts/page.js"></script>
  78. </body>
  79. </html>
粤ICP备19079148号