NodeUniform.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>NodeUniform - 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">NodeUniform</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 uniforms that are going to be generated
  17. by the builder. A dictionary of node uniforms is maintained in <a href="NodeBuilder.html#uniforms">NodeBuilder#uniforms</a>
  18. for this purpose.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="NodeUniform" translate="no">new <a href="#NodeUniform">NodeUniform</a><span class="signature">( name : <span class="param-type">string</span>, type : <span class="param-type">string</span>, node : <span class="param-type"><a href="UniformNode.html">UniformNode</a></span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new node uniform.</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 uniform.</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 uniform.</p>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="name">
  48. <strong>node</strong>
  49. </td>
  50. <td class="description last">
  51. <p>An reference to the node.</p>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </div>
  57. </div>
  58. <h2 class="subsection-title">Properties</h2>
  59. <div class="member">
  60. <h3 class="name" id="groupNode" translate="no">.<a href="#groupNode">groupNode</a><span class="type-signature"> : <a href="UniformGroupNode.html">UniformGroupNode</a></span> </h3>
  61. <div class="description">
  62. <p>The uniform node's group.</p>
  63. </div>
  64. </div>
  65. <div class="member">
  66. <h3 class="name" id="id" translate="no">.<a href="#id">id</a><span class="type-signature"> : number</span> </h3>
  67. <div class="description">
  68. <p>The id of the uniform node.</p>
  69. </div>
  70. </div>
  71. <div class="member">
  72. <h3 class="name" id="isNodeUniform" translate="no">.<a href="#isNodeUniform">isNodeUniform</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  73. <div class="description">
  74. <p>This flag can be used for type testing.</p>
  75. <p>Default is <code>true</code>.</p>
  76. </div>
  77. </div>
  78. <div class="member">
  79. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  80. <div class="description">
  81. <p>The name of the uniform.</p>
  82. </div>
  83. </div>
  84. <div class="member">
  85. <h3 class="name" id="node" translate="no">.<a href="#node">node</a><span class="type-signature"> : <a href="UniformNode.html">UniformNode</a></span> </h3>
  86. <div class="description">
  87. <p>An reference to the node.</p>
  88. </div>
  89. </div>
  90. <div class="member">
  91. <h3 class="name" id="type" translate="no">.<a href="#type">type</a><span class="type-signature"> : string</span> </h3>
  92. <div class="description">
  93. <p>The type of the uniform.</p>
  94. </div>
  95. </div>
  96. <div class="member">
  97. <h3 class="name" id="value" translate="no">.<a href="#value">value</a><span class="type-signature"> : <a href="global.html#any">any</a></span> </h3>
  98. <div class="description">
  99. <p>The value of the uniform node.</p>
  100. </div>
  101. </div>
  102. <h2 class="subsection-title">Source</h2>
  103. <p>
  104. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/NodeUniform.js" translate="no" target="_blank" rel="noopener">src/nodes/core/NodeUniform.js</a>
  105. </p>
  106. </article>
  107. </section>
  108. <script src="../scripts/linenumber.js"></script>
  109. <script src="../scripts/page.js"></script>
  110. </body>
  111. </html>
粤ICP备19079148号