NodeVar.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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"><code>name</code></td>
  32. <td class="description last"><p>The name of the variable.</p></td>
  33. </tr>
  34. <tr>
  35. <td class="name"><code>type</code></td>
  36. <td class="description last"><p>The type of the variable.</p></td>
  37. </tr>
  38. <tr>
  39. <td class="name"><code>readOnly</code></td>
  40. <td class="description last"><p>The read-only flag.<br/>Default is <code>false</code>.</p></td>
  41. </tr>
  42. <tr>
  43. <td class="name"><code>count</code></td>
  44. <td class="description last"><p>The size.<br/>Default is <code>null</code>.</p></td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. </div>
  49. </div>
  50. <h2 class="subsection-title">Properties</h2>
  51. <div class="member">
  52. <h3 class="name" id="count" translate="no">.<a href="#count">count</a><span class="type-signature"> : number</span> </h3>
  53. <div class="description">
  54. <p>The size.</p>
  55. </div>
  56. </div>
  57. <div class="member">
  58. <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>
  59. <div class="description">
  60. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  61. </div>
  62. </div>
  63. <div class="member">
  64. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  65. <div class="description">
  66. <p>The name of the variable.</p>
  67. </div>
  68. </div>
  69. <div class="member">
  70. <h3 class="name" id="readOnly" translate="no">.<a href="#readOnly">readOnly</a><span class="type-signature"> : boolean</span> </h3>
  71. <div class="description">
  72. <p>The read-only flag.</p>
  73. </div>
  74. </div>
  75. <div class="member">
  76. <h3 class="name" id="type" translate="no">.<a href="#type">type</a><span class="type-signature"> : string</span> </h3>
  77. <div class="description">
  78. <p>The type of the variable.</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/NodeVar.js" target="_blank" rel="noopener" translate="no">src/nodes/core/NodeVar.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号