NodeFunctionInput.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>NodeFunctionInput - 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">NodeFunctionInput</h1>
  13. <section>
  14. <header>
  15. <div class="class-description"><p>Describes the input of a <a href="NodeFunction.html">NodeFunction</a>.</p></div>
  16. </header>
  17. <article>
  18. <div class="container-overview">
  19. <h2>Constructor</h2>
  20. <h3 class="name name-method" id="NodeFunctionInput" translate="no">new <a href="#NodeFunctionInput">NodeFunctionInput</a><span class="signature">( type : <span class="param-type">string</span>, name : <span class="param-type">string</span>, count : <span class="param-type">number</span>, qualifier : <span class="param-type">'in' | 'out' | 'inout'</span>, isConst : <span class="param-type">boolean</span> )</span> </h3>
  21. <div class="method">
  22. <div class="description">
  23. <p>Constructs a new node function input.</p>
  24. </div>
  25. <table class="params">
  26. <tbody>
  27. <tr>
  28. <td class="name">
  29. <strong>type</strong>
  30. </td>
  31. <td class="description last">
  32. <p>The input type.</p>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td class="name">
  37. <strong>name</strong>
  38. </td>
  39. <td class="description last">
  40. <p>The input name.</p>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td class="name">
  45. <strong>count</strong>
  46. </td>
  47. <td class="description last">
  48. <p>If the input is an Array, count will be the length.</p>
  49. <p>Default is <code>null</code>.</p>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="name">
  54. <strong>qualifier</strong>
  55. </td>
  56. <td class="description last">
  57. <p>The parameter qualifier (only relevant for GLSL).</p>
  58. <p>Default is <code>''</code>.</p>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="name">
  63. <strong>isConst</strong>
  64. </td>
  65. <td class="description last">
  66. <p>Whether the input uses a const qualifier or not (only relevant for GLSL).</p>
  67. <p>Default is <code>false</code>.</p>
  68. </td>
  69. </tr>
  70. </tbody>
  71. </table>
  72. </div>
  73. </div>
  74. <h2 class="subsection-title">Properties</h2>
  75. <div class="member">
  76. <h3 class="name" id="count" translate="no">.<a href="#count">count</a><span class="type-signature"> : number</span> </h3>
  77. <div class="description">
  78. <p>If the input is an Array, count will be the length.</p>
  79. <p>Default is <code>null</code>.</p>
  80. </div>
  81. </div>
  82. <div class="member">
  83. <h3 class="name" id="isConst" translate="no">.<a href="#isConst">isConst</a><span class="type-signature"> : boolean</span> </h3>
  84. <div class="description">
  85. <p>Whether the input uses a const qualifier or not (only relevant for GLSL).</p>
  86. <p>Default is <code>false</code>.</p>
  87. </div>
  88. </div>
  89. <div class="member">
  90. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  91. <div class="description">
  92. <p>The input name.</p>
  93. </div>
  94. </div>
  95. <div class="member">
  96. <h3 class="name" id="qualifier" translate="no">.<a href="#qualifier">qualifier</a><span class="type-signature"> : 'in' | 'out' | 'inout'</span> </h3>
  97. <div class="description">
  98. <p>The parameter qualifier (only relevant for GLSL).</p>
  99. <p>Default is <code>''</code>.</p>
  100. </div>
  101. </div>
  102. <div class="member">
  103. <h3 class="name" id="type" translate="no">.<a href="#type">type</a><span class="type-signature"> : string</span> </h3>
  104. <div class="description">
  105. <p>The input type.</p>
  106. </div>
  107. </div>
  108. <h2 class="subsection-title">Source</h2>
  109. <p>
  110. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/NodeFunctionInput.js" translate="no" target="_blank" rel="noopener">src/nodes/core/NodeFunctionInput.js</a>
  111. </p>
  112. </article>
  113. </section>
  114. <script src="../scripts/linenumber.js"></script>
  115. <script src="../scripts/page.js"></script>
  116. </body>
  117. </html>
粤ICP备19079148号