LineBasicMaterial.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. [page:Material] <!-- &rarr -->;
  11. <h1>[name]</h1>
  12. <div class="desc">A material for drawing wireframe-style geometries.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]( [page:Object parameters] )</h3>
  15. <div>parameters is an object with one or more properties defining the material's appearance.</div>
  16. <div>
  17. color — Line color in hexadecimal. Default is 0xffffff.<br />
  18. linewidth — Line thickness. Default is 1.<br />
  19. linecap — Define appearance of line ends. Default is 'round'.<br />
  20. linejoin — Define appearance of line joints. Default is 'round'.<br />
  21. vertexColors — Define whether the material uses vertex colors, or not. Default is false.<br />
  22. fog — Define whether the material color is affected by global fog settings. Default is false.
  23. </div>
  24. <h2>Properties</h2>
  25. <h3>.[page:Integer color]</h3>
  26. <div>Sets the color of the line. Default is 0xffffff.</div>
  27. <h3>.[page:Float linewidth]</h3>
  28. <div>Controls line thickness. Default is 1.</div>
  29. <h3>.[page:String linecap]</h3>
  30. <div>Define appearance of line ends. Possible values are "butt", "round" and "square". Default is 'round'.</div>
  31. <div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:WebGLRenderer WebGL] renderer, but does work with the [page:CanvasRenderer Canvas] renderer.</div>
  32. <h3>.[page:String linejoin]</h3>
  33. <div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
  34. <div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:WebGLRenderer WebGL] renderer, but does work with the [page:CanvasRenderer Canvas] renderer.</div>
  35. <h3>.[page:Boolean vertexColors]</h3>
  36. <div>Define whether the material uses vertex colors, or not. Default is false.</div>
  37. <div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:CanvasRenderer Canvas] renderer, but does work with the [page:WebGLRenderer WebGL] renderer.</div>
  38. <h3>.[page:Boolean fog]</h3>
  39. <div>Define whether the material color is affected by global fog settings.</div>
  40. <div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:CanvasRenderer Canvas] renderer, but does work with the [page:WebGLRenderer WebGL] renderer.</div>
  41. <h2>Methods</h2>
  42. <h2>Source</h2>
  43. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  44. </body>
  45. </html>