1
0

LineDashedNodeMaterial.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>LineDashedNodeMaterial - 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">LineDashedNodeMaterial</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Node material version of <a href="LineDashedMaterial.html">LineDashedMaterial</a>.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="LineDashedNodeMaterial" translate="no">new <a href="#LineDashedNodeMaterial">LineDashedNodeMaterial</a><span class="signature">( parameters : <span class="param-type">Object</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new line dashed node material.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>parameters</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The configuration parameter.</p>
  34. </td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <h2 class="subsection-title">Properties</h2>
  41. <div class="member">
  42. <h3 class="name" id="dashOffset" translate="no">.<a href="#dashOffset">dashOffset</a><span class="type-signature"> : number</span> </h3>
  43. <div class="description">
  44. <p>The dash offset.</p>
  45. <p>Default is <code>0</code>.</p>
  46. </div>
  47. </div>
  48. <div class="member">
  49. <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>
  50. <div class="description">
  51. <p>The scale of dash materials is by default inferred from the <code>scale</code>
  52. property. This node property allows to overwrite the default
  53. and define the scale with a node instead.</p>
  54. <p>If you don't want to overwrite the scale but modify the existing
  55. value instead, use <a href="TSL.html#materialLineScale">materialLineScale</a>.</p>
  56. <p>Default is <code>null</code>.</p>
  57. </div>
  58. </div>
  59. <div class="member">
  60. <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>
  61. <div class="description">
  62. <p>The dash size of dash materials is by default inferred from the <code>dashSize</code>
  63. property. This node property allows to overwrite the default
  64. and define the dash size with a node instead.</p>
  65. <p>If you don't want to overwrite the dash size but modify the existing
  66. value instead, use <a href="TSL.html#materialLineDashSize">materialLineDashSize</a>.</p>
  67. <p>Default is <code>null</code>.</p>
  68. </div>
  69. </div>
  70. <div class="member">
  71. <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>
  72. <div class="description">
  73. <p>The gap size of dash materials is by default inferred from the <code>gapSize</code>
  74. property. This node property allows to overwrite the default
  75. and define the gap size with a node instead.</p>
  76. <p>If you don't want to overwrite the gap size but modify the existing
  77. value instead, use <a href="TSL.html#materialLineGapSize">materialLineGapSize</a>.</p>
  78. <p>Default is <code>null</code>.</p>
  79. </div>
  80. </div>
  81. <div class="member">
  82. <h3 class="name" id="isLineDashedNodeMaterial" translate="no">.<a href="#isLineDashedNodeMaterial">isLineDashedNodeMaterial</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  83. <div class="description">
  84. <p>This flag can be used for type testing.</p>
  85. <p>Default is <code>true</code>.</p>
  86. </div>
  87. </div>
  88. <div class="member">
  89. <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>
  90. <div class="description">
  91. <p>The offset of dash materials is by default inferred from the <code>dashOffset</code>
  92. property. This node property allows to overwrite the default
  93. and define the offset with a node instead.</p>
  94. <p>If you don't want to overwrite the offset but modify the existing
  95. value instead, use <a href="TSL.html#materialLineDashOffset">materialLineDashOffset</a>.</p>
  96. <p>Default is <code>null</code>.</p>
  97. </div>
  98. </div>
  99. <h2 class="subsection-title">Methods</h2>
  100. <h3 class="name name-method" id="setupVariants" translate="no">.<a href="#setupVariants">setupVariants</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  101. <div class="method">
  102. <div class="description">
  103. <p>Setups the dash specific node variables.</p>
  104. </div>
  105. <table class="params">
  106. <tbody>
  107. <tr>
  108. <td class="name">
  109. <strong>builder</strong>
  110. </td>
  111. <td class="description last">
  112. <p>The current node builder.</p>
  113. </td>
  114. </tr>
  115. </tbody>
  116. </table>
  117. <dl class="details">
  118. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="NodeMaterial.html#setupVariants">NodeMaterial#setupVariants</a></dt>
  119. </dl>
  120. </div>
  121. <h2 class="subsection-title">Source</h2>
  122. <p>
  123. <a href="https://github.com/mrdoob/three.js/blob/master/src/materials/nodes/LineDashedNodeMaterial.js" translate="no" target="_blank" rel="noopener">src/materials/nodes/LineDashedNodeMaterial.js</a>
  124. </p>
  125. </article>
  126. </section>
  127. <script src="../scripts/linenumber.js"></script>
  128. <script src="../scripts/page.js"></script>
  129. </body>
  130. </html>
粤ICP备19079148号