1
0

NodeVar.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>NodeVar - 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. <h1 translate="no">NodeVar</h1>
  13. <section>
  14. <header>
  15. <div class="class-description"><p><a href="NodeBuilder.html">NodeBuilder</a> is going to create instances of this class during the build process
  16. of nodes. They represent the final shader variables that are going to be generated
  17. by the builder. A dictionary of node variables is maintained in <a href="NodeBuilder.html#vars">NodeBuilder#vars</a> for
  18. this purpose.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="NodeVar" translate="no">new <a href="#NodeVar">NodeVar</a><span class="signature">( name : <span class="param-type">string</span>, type : <span class="param-type">string</span>, readOnly : <span class="param-type">boolean</span>, count : <span class="param-type">number</span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new node variable.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name">
  32. <strong>name</strong>
  33. </td>
  34. <td class="description last">
  35. <p>The name of the variable.</p>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td class="name">
  40. <strong>type</strong>
  41. </td>
  42. <td class="description last">
  43. <p>The type of the variable.</p>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="name">
  48. <strong>readOnly</strong>
  49. </td>
  50. <td class="description last">
  51. <p>The read-only flag.</p>
  52. <p>Default is <code>false</code>.</p>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="name">
  57. <strong>count</strong>
  58. </td>
  59. <td class="description last">
  60. <p>The size.</p>
  61. <p>Default is <code>null</code>.</p>
  62. </td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. </div>
  67. </div>
  68. <h2 class="subsection-title">Properties</h2>
  69. <div class="member">
  70. <h3 class="name" id="count" translate="no">.<a href="#count">count</a><span class="type-signature"> : number</span> </h3>
  71. <div class="description">
  72. <p>The size.</p>
  73. </div>
  74. </div>
  75. <div class="member">
  76. <h3 class="name" id="isNodeVar" translate="no">.<a href="#isNodeVar">isNodeVar</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  77. <div class="description">
  78. <p>This flag can be used for type testing.</p>
  79. <p>Default is <code>true</code>.</p>
  80. </div>
  81. </div>
  82. <div class="member">
  83. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  84. <div class="description">
  85. <p>The name of the variable.</p>
  86. </div>
  87. </div>
  88. <div class="member">
  89. <h3 class="name" id="readOnly" translate="no">.<a href="#readOnly">readOnly</a><span class="type-signature"> : boolean</span> </h3>
  90. <div class="description">
  91. <p>The read-only flag.</p>
  92. </div>
  93. </div>
  94. <div class="member">
  95. <h3 class="name" id="type" translate="no">.<a href="#type">type</a><span class="type-signature"> : string</span> </h3>
  96. <div class="description">
  97. <p>The type of the variable.</p>
  98. </div>
  99. </div>
  100. <h2 class="subsection-title">Source</h2>
  101. <p>
  102. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/NodeVar.js" translate="no" target="_blank" rel="noopener">src/nodes/core/NodeVar.js</a>
  103. </p>
  104. </article>
  105. </section>
  106. <script src="../scripts/linenumber.js"></script>
  107. <script src="../scripts/page.js"></script>
  108. </body>
  109. </html>
粤ICP备19079148号