LineDashedNodeMaterial.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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"><code>parameters</code></td>
  30. <td class="description last"><p>The configuration parameter.</p></td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>
  36. <h2 class="subsection-title">Properties</h2>
  37. <div class="member">
  38. <h3 class="name" id="dashOffset" translate="no">.<a href="#dashOffset">dashOffset</a><span class="type-signature"> : number</span> </h3>
  39. <div class="description">
  40. <p>The dash offset.<br/>Default is <code>0</code>.</p>
  41. </div>
  42. </div>
  43. <div class="member">
  44. <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>
  45. <div class="description">
  46. <p>The scale of dash materials is by default inferred from the <code>scale</code>
  47. property. This node property allows to overwrite the default
  48. and define the scale with a node instead.</p>
  49. <p>If you don't want to overwrite the scale but modify the existing
  50. value instead, use <a href="TSL.html#materialLineScale">materialLineScale</a>.<br/>Default is <code>null</code>.</p>
  51. </div>
  52. </div>
  53. <div class="member">
  54. <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>
  55. <div class="description">
  56. <p>The dash size of dash materials is by default inferred from the <code>dashSize</code>
  57. property. This node property allows to overwrite the default
  58. and define the dash size with a node instead.</p>
  59. <p>If you don't want to overwrite the dash size but modify the existing
  60. value instead, use <a href="TSL.html#materialLineDashSize">materialLineDashSize</a>.<br/>Default is <code>null</code>.</p>
  61. </div>
  62. </div>
  63. <div class="member">
  64. <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>
  65. <div class="description">
  66. <p>The gap size of dash materials is by default inferred from the <code>gapSize</code>
  67. property. This node property allows to overwrite the default
  68. and define the gap size with a node instead.</p>
  69. <p>If you don't want to overwrite the gap size but modify the existing
  70. value instead, use <a href="TSL.html#materialLineGapSize">materialLineGapSize</a>.<br/>Default is <code>null</code>.</p>
  71. </div>
  72. </div>
  73. <div class="member">
  74. <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>
  75. <div class="description">
  76. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  77. </div>
  78. </div>
  79. <div class="member">
  80. <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>
  81. <div class="description">
  82. <p>The offset of dash materials is by default inferred from the <code>dashOffset</code>
  83. property. This node property allows to overwrite the default
  84. and define the offset with a node instead.</p>
  85. <p>If you don't want to overwrite the offset but modify the existing
  86. value instead, use <a href="TSL.html#materialLineDashOffset">materialLineDashOffset</a>.<br/>Default is <code>null</code>.</p>
  87. </div>
  88. </div>
  89. <h2 class="subsection-title">Methods</h2>
  90. <h3 class="name name-method" id="setupVariants" translate="no">.<a href="#setupVariants">setupVariants</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span> </h3>
  91. <div class="method">
  92. <div class="description">
  93. <p>Setups the dash specific node variables.</p>
  94. </div>
  95. <table class="params">
  96. <tbody>
  97. <tr>
  98. <td class="name"><code>builder</code></td>
  99. <td class="description last"><p>The current node builder.</p></td>
  100. </tr>
  101. </tbody>
  102. </table>
  103. <dl class="details">
  104. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="NodeMaterial.html#setupVariants">NodeMaterial#setupVariants</a></dt>
  105. </dl>
  106. </div>
  107. <h2 class="subsection-title">Source</h2>
  108. <p>
  109. <a href="https://github.com/mrdoob/three.js/blob/master/src/materials/nodes/LineDashedNodeMaterial.js" target="_blank" rel="noopener" translate="no">src/materials/nodes/LineDashedNodeMaterial.js</a>
  110. </p>
  111. </article>
  112. </section>
  113. <script src="../scripts/linenumber.js"></script>
  114. <script src="../scripts/page.js"></script>
  115. </body>
  116. </html>
粤ICP备19079148号