1
0

Line2NodeMaterial.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Line2NodeMaterial - 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="Material.html">Material</a> → <a href="NodeMaterial.html">NodeMaterial</a> → </p>
  13. <h1 translate="no">Line2NodeMaterial</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node material can be used to render lines with a size larger than one
  17. by representing them as instanced meshes.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="Line2NodeMaterial" translate="no">new <a href="#Line2NodeMaterial">Line2NodeMaterial</a><span class="signature">( parameters : <span class="param-type">Object</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new node material for wide line rendering.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>parameters</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The configuration parameter.</p>
  35. <p>Default is <code>{}</code>.</p>
  36. </td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. </div>
  41. </div>
  42. <h2 class="subsection-title">Properties</h2>
  43. <div class="member">
  44. <h3 class="name" id="alphaToCoverage" translate="no">.<a href="#alphaToCoverage">alphaToCoverage</a><span class="type-signature"> : boolean</span> </h3>
  45. <div class="description">
  46. <p>Whether alpha to coverage should be used or not.</p>
  47. <p>Default is <code>true</code>.</p>
  48. </div>
  49. <dl class="details">
  50. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="NodeMaterial.html#alphaToCoverage">NodeMaterial#alphaToCoverage</a></dt>
  51. </dl>
  52. </div>
  53. <div class="member">
  54. <h3 class="name" id="blending" translate="no">.<a href="#blending">blending</a><span class="type-signature"> : number</span> </h3>
  55. <div class="description">
  56. <p>Blending is set to <code>NoBlending</code> since transparency
  57. is not supported, yet.</p>
  58. <p>Default is <code>0</code>.</p>
  59. </div>
  60. <dl class="details">
  61. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="NodeMaterial.html#blending">NodeMaterial#blending</a></dt>
  62. </dl>
  63. </div>
  64. <div class="member">
  65. <h3 class="name" id="dashOffset" translate="no">.<a href="#dashOffset">dashOffset</a><span class="type-signature"> : number</span> </h3>
  66. <div class="description">
  67. <p>The dash offset.</p>
  68. <p>Default is <code>0</code>.</p>
  69. </div>
  70. </div>
  71. <div class="member">
  72. <h3 class="name" id="dashScaleNode" translate="no">.<a href="#dashScaleNode">dashScaleNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  73. <div class="description">
  74. <p>Defines the dash scale.</p>
  75. <p>Default is <code>null</code>.</p>
  76. </div>
  77. </div>
  78. <div class="member">
  79. <h3 class="name" id="dashSizeNode" translate="no">.<a href="#dashSizeNode">dashSizeNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  80. <div class="description">
  81. <p>Defines the dash size.</p>
  82. <p>Default is <code>null</code>.</p>
  83. </div>
  84. </div>
  85. <div class="member">
  86. <h3 class="name" id="dashed" translate="no">.<a href="#dashed">dashed</a><span class="type-signature"> : boolean</span> </h3>
  87. <div class="description">
  88. <p>Whether the lines should be dashed or not.</p>
  89. <p>Default is <code>false</code>.</p>
  90. </div>
  91. </div>
  92. <div class="member">
  93. <h3 class="name" id="gapSizeNode" translate="no">.<a href="#gapSizeNode">gapSizeNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  94. <div class="description">
  95. <p>Defines the gap size.</p>
  96. <p>Default is <code>null</code>.</p>
  97. </div>
  98. </div>
  99. <div class="member">
  100. <h3 class="name" id="isLine2NodeMaterial" translate="no">.<a href="#isLine2NodeMaterial">isLine2NodeMaterial</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  101. <div class="description">
  102. <p>This flag can be used for type testing.</p>
  103. <p>Default is <code>true</code>.</p>
  104. </div>
  105. </div>
  106. <div class="member">
  107. <h3 class="name" id="lineColorNode" translate="no">.<a href="#lineColorNode">lineColorNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  108. <div class="description">
  109. <p>Defines the lines color.</p>
  110. <p>Default is <code>null</code>.</p>
  111. </div>
  112. </div>
  113. <div class="member">
  114. <h3 class="name" id="offsetNode" translate="no">.<a href="#offsetNode">offsetNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  115. <div class="description">
  116. <p>Defines the offset.</p>
  117. <p>Default is <code>null</code>.</p>
  118. </div>
  119. </div>
  120. <div class="member">
  121. <h3 class="name" id="useColor" translate="no">.<a href="#useColor">useColor</a><span class="type-signature"> : boolean</span> </h3>
  122. <div class="description">
  123. <p>Whether vertex colors should be used or not.</p>
  124. <p>Default is <code>false</code>.</p>
  125. </div>
  126. </div>
  127. <div class="member">
  128. <h3 class="name" id="worldUnits" translate="no">.<a href="#worldUnits">worldUnits</a><span class="type-signature"> : boolean</span> </h3>
  129. <div class="description">
  130. <p>Whether the lines should sized in world units or not.
  131. When set to <code>false</code> the unit is pixel.</p>
  132. <p>Default is <code>false</code>.</p>
  133. </div>
  134. </div>
  135. <h2 class="subsection-title">Methods</h2>
  136. <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  137. <div class="method">
  138. <div class="description">
  139. <p>Setups the vertex and fragment stage of this node material.</p>
  140. </div>
  141. <table class="params">
  142. <tbody>
  143. <tr>
  144. <td class="name">
  145. <strong>builder</strong>
  146. </td>
  147. <td class="description last">
  148. <p>The current node builder.</p>
  149. </td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. <dl class="details">
  154. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="NodeMaterial.html#setup">NodeMaterial#setup</a></dt>
  155. </dl>
  156. </div>
  157. <h2 class="subsection-title">Source</h2>
  158. <p>
  159. <a href="https://github.com/mrdoob/three.js/blob/master/src/materials/nodes/Line2NodeMaterial.js" translate="no" target="_blank" rel="noopener">src/materials/nodes/Line2NodeMaterial.js</a>
  160. </p>
  161. </article>
  162. </section>
  163. <script src="../scripts/linenumber.js"></script>
  164. <script src="../scripts/page.js"></script>
  165. </body>
  166. </html>
粤ICP备19079148号