NodeFunctionInput.html 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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"><code>type</code></td>
  29. <td class="description last"><p>The input type.</p></td>
  30. </tr>
  31. <tr>
  32. <td class="name"><code>name</code></td>
  33. <td class="description last"><p>The input name.</p></td>
  34. </tr>
  35. <tr>
  36. <td class="name"><code>count</code></td>
  37. <td class="description last"><p>If the input is an Array, count will be the length.<br/>Default is <code>null</code>.</p></td>
  38. </tr>
  39. <tr>
  40. <td class="name"><code>qualifier</code></td>
  41. <td class="description last"><p>The parameter qualifier (only relevant for GLSL).<br/>Default is <code>''</code>.</p></td>
  42. </tr>
  43. <tr>
  44. <td class="name"><code>isConst</code></td>
  45. <td class="description last"><p>Whether the input uses a const qualifier or not (only relevant for GLSL).<br/>Default is <code>false</code>.</p></td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. <h2 class="subsection-title">Properties</h2>
  52. <div class="member">
  53. <h3 class="name" id="count" translate="no">.<a href="#count">count</a><span class="type-signature"> : number</span> </h3>
  54. <div class="description">
  55. <p>If the input is an Array, count will be the length.<br/>Default is <code>null</code>.</p>
  56. </div>
  57. </div>
  58. <div class="member">
  59. <h3 class="name" id="isConst" translate="no">.<a href="#isConst">isConst</a><span class="type-signature"> : boolean</span> </h3>
  60. <div class="description">
  61. <p>Whether the input uses a const qualifier or not (only relevant for GLSL).<br/>Default is <code>false</code>.</p>
  62. </div>
  63. </div>
  64. <div class="member">
  65. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  66. <div class="description">
  67. <p>The input name.</p>
  68. </div>
  69. </div>
  70. <div class="member">
  71. <h3 class="name" id="qualifier" translate="no">.<a href="#qualifier">qualifier</a><span class="type-signature"> : 'in' | 'out' | 'inout'</span> </h3>
  72. <div class="description">
  73. <p>The parameter qualifier (only relevant for GLSL).<br/>Default is <code>''</code>.</p>
  74. </div>
  75. </div>
  76. <div class="member">
  77. <h3 class="name" id="type" translate="no">.<a href="#type">type</a><span class="type-signature"> : string</span> </h3>
  78. <div class="description">
  79. <p>The input type.</p>
  80. </div>
  81. </div>
  82. <h2 class="subsection-title">Source</h2>
  83. <p>
  84. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/NodeFunctionInput.js" target="_blank" rel="noopener" translate="no">src/nodes/core/NodeFunctionInput.js</a>
  85. </p>
  86. </article>
  87. </section>
  88. <script src="../scripts/linenumber.js"></script>
  89. <script src="../scripts/page.js"></script>
  90. </body>
  91. </html>
粤ICP备19079148号