LDrawConditionalLineMaterial.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>LDrawConditionalLineMaterial - 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="ShaderMaterial.html">ShaderMaterial</a> → </p>
  13. <h1 translate="no">LDrawConditionalLineMaterial</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A special line material for meshes loaded via <a href="LDrawLoader.html">LDrawLoader</a>.</p>
  17. <p>This module can only be used with <a href="WebGLRenderer.html">WebGLRenderer</a>. When using <a href="WebGPURenderer.html">WebGPURenderer</a>,
  18. import the class from <code>LDrawConditionalLineNodeMaterial.js</code>.</p></div>
  19. </header>
  20. <article>
  21. <h2 class="subsection-title">Import</h2>
  22. <p><span translate="no">LDrawConditionalLineMaterial</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
  23. <pre><code class="language-js">import { LDrawConditionalLineMaterial } from 'three/addons/materials/LDrawConditionalLineMaterial.js';</code></pre>
  24. <div class="container-overview">
  25. <h2>Constructor</h2>
  26. <h3 class="name name-method" id="LDrawConditionalLineMaterial" translate="no">new <a href="#LDrawConditionalLineMaterial">LDrawConditionalLineMaterial</a><span class="signature">( parameters : <span class="param-type">Object</span> )</span> </h3>
  27. <div class="method">
  28. <div class="description">
  29. <p>Constructs a new conditional line material.</p>
  30. </div>
  31. <table class="params">
  32. <tbody>
  33. <tr>
  34. <td class="name">
  35. <strong>parameters</strong>
  36. </td>
  37. <td class="description last">
  38. <p>An object with one or more properties
  39. defining the material's appearance. Any property of the material
  40. (including any property from inherited materials) can be passed
  41. in here. Color values can be passed any type of value accepted
  42. by <a href="Color.html#set">Color#set</a>.</p>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. <h2 class="subsection-title">Properties</h2>
  50. <div class="member">
  51. <h3 class="name" id="color" translate="no">.<a href="#color">color</a><span class="type-signature"> : <a href="Color.html">Color</a></span> </h3>
  52. <div class="description">
  53. <p>The material's color.</p>
  54. <p>Default is <code>(1,1,1)</code>.</p>
  55. </div>
  56. </div>
  57. <div class="member">
  58. <h3 class="name" id="isLDrawConditionalLineMaterial" translate="no">.<a href="#isLDrawConditionalLineMaterial">isLDrawConditionalLineMaterial</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  59. <div class="description">
  60. <p>This flag can be used for type testing.</p>
  61. <p>Default is <code>true</code>.</p>
  62. </div>
  63. </div>
  64. <div class="member">
  65. <h3 class="name" id="opacity" translate="no">.<a href="#opacity">opacity</a><span class="type-signature"> : number</span> </h3>
  66. <div class="description">
  67. <p>The material's opacity.</p>
  68. <p>Default is <code>1</code>.</p>
  69. </div>
  70. <dl class="details">
  71. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="ShaderMaterial.html#opacity">ShaderMaterial#opacity</a></dt>
  72. </dl>
  73. </div>
  74. <h2 class="subsection-title">Source</h2>
  75. <p>
  76. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/materials/LDrawConditionalLineMaterial.js" translate="no" target="_blank" rel="noopener">examples/jsm/materials/LDrawConditionalLineMaterial.js</a>
  77. </p>
  78. </article>
  79. </section>
  80. <script src="../scripts/linenumber.js"></script>
  81. <script src="../scripts/page.js"></script>
  82. </body>
  83. </html>
粤ICP备19079148号