NodeUniform.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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">UniformNode</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"><code>name</code></td>
  32. <td class="description last"><p>The name of the uniform.</p></td>
  33. </tr>
  34. <tr>
  35. <td class="name"><code>type</code></td>
  36. <td class="description last"><p>The type of the uniform.</p></td>
  37. </tr>
  38. <tr>
  39. <td class="name"><code>node</code></td>
  40. <td class="description last"><p>An reference to the node.</p></td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. </div>
  45. </div>
  46. <h2 class="subsection-title">Properties</h2>
  47. <div class="member">
  48. <h3 class="name" id="groupNode" translate="no">.<a href="#groupNode">groupNode</a><span class="type-signature"> : <a href="UniformGroupNode.html">UniformGroupNode</a></span> </h3>
  49. <div class="description">
  50. <p>The uniform node's group.</p>
  51. </div>
  52. </div>
  53. <div class="member">
  54. <h3 class="name" id="id" translate="no">.<a href="#id">id</a><span class="type-signature"> : number</span> </h3>
  55. <div class="description">
  56. <p>The id of the uniform node.</p>
  57. </div>
  58. </div>
  59. <div class="member">
  60. <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>
  61. <div class="description">
  62. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  63. </div>
  64. </div>
  65. <div class="member">
  66. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  67. <div class="description">
  68. <p>The name of the uniform.</p>
  69. </div>
  70. </div>
  71. <div class="member">
  72. <h3 class="name" id="node" translate="no">.<a href="#node">node</a><span class="type-signature"> : <a href="UniformNode.html">UniformNode</a></span> </h3>
  73. <div class="description">
  74. <p>An reference to the node.</p>
  75. </div>
  76. </div>
  77. <div class="member">
  78. <h3 class="name" id="type" translate="no">.<a href="#type">type</a><span class="type-signature"> : string</span> </h3>
  79. <div class="description">
  80. <p>The type of the uniform.</p>
  81. </div>
  82. </div>
  83. <div class="member">
  84. <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>
  85. <div class="description">
  86. <p>The value of the uniform node.</p>
  87. </div>
  88. </div>
  89. <h2 class="subsection-title">Source</h2>
  90. <p>
  91. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/NodeUniform.js" target="_blank" rel="noopener" translate="no">src/nodes/core/NodeUniform.js</a>
  92. </p>
  93. </article>
  94. </section>
  95. <script src="../scripts/linenumber.js"></script>
  96. <script src="../scripts/page.js"></script>
  97. </body>
  98. </html>
粤ICP备19079148号