BuiltinNode.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>BuiltinNode - 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. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → </p>
  13. <h1 translate="no">BuiltinNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>The node allows to set values for built-in shader variables. That is
  17. required for features like hardware-accelerated vertex clipping.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="BuiltinNode" translate="no">new <a href="#BuiltinNode">BuiltinNode</a><span class="signature">( name : <span class="param-type">string</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new builtin node.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>name</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The name of the built-in shader variable.</p>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. </div>
  41. <h2 class="subsection-title">Properties</h2>
  42. <div class="member">
  43. <h3 class="name" id="isBuiltinNode" translate="no">.<a href="#isBuiltinNode">isBuiltinNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  44. <div class="description">
  45. <p>This flag can be used for type testing.</p>
  46. <p>Default is <code>true</code>.</p>
  47. </div>
  48. </div>
  49. <div class="member">
  50. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  51. <div class="description">
  52. <p>The name of the built-in shader variable.</p>
  53. </div>
  54. <dl class="details">
  55. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#name">Node#name</a></dt>
  56. </dl>
  57. </div>
  58. <h2 class="subsection-title">Methods</h2>
  59. <h3 class="name name-method" id="generate" translate="no">.<a href="#generate">generate</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : string</span> </h3>
  60. <div class="method">
  61. <div class="description">
  62. <p>Generates the code snippet of the builtin node.</p>
  63. </div>
  64. <table class="params">
  65. <tbody>
  66. <tr>
  67. <td class="name">
  68. <strong>builder</strong>
  69. </td>
  70. <td class="description last">
  71. <p>The current node builder.</p>
  72. </td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. <dl class="details">
  77. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#generate">Node#generate</a></dt>
  78. </dl>
  79. <dl class="details">
  80. <dt class="tag-returns"><strong>Returns:</strong> The generated code snippet.</dt>
  81. </dl>
  82. </div>
  83. <h2 class="subsection-title">Source</h2>
  84. <p>
  85. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/BuiltinNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/BuiltinNode.js</a>
  86. </p>
  87. </article>
  88. </section>
  89. <script src="../scripts/linenumber.js"></script>
  90. <script src="../scripts/page.js"></script>
  91. </body>
  92. </html>
粤ICP备19079148号