2
0

LineDashedMaterial.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 with dashed lines.</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. scale — The scale of the dashed part of a line. Default is 1.<br />
  20. dashSize — The size of the dash. Default is 3.<br />
  21. gapSize - The size of the gap. Default is 1.<br />
  22. vertexColors — Define how the vertices gets colored. Default is THREE.NoColors.<br />
  23. fog — Define whether the material color is affected by global fog settings. Default is false.
  24. </div>
  25. <h2>Properties</h2>
  26. <h3>.[page:number scale]</h3>
  27. <div>
  28. The scale of the dashed part of a line.
  29. </div>
  30. <h3>.[page:Color color]</h3>
  31. <div>
  32. Sets the color of the line. Default is 0xffffff.
  33. </div>
  34. <h3>.[page:boolean vertexColors]</h3>
  35. <div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
  36. <div>This setting might not have any effect when used with certain renderers.</div>
  37. <h3>.[page:number dashSize]</h3>
  38. <div>
  39. The size of the dash. This is both the gap with the stroke. Default is 3.
  40. </div>
  41. <h3>.[page:boolean fog]</h3>
  42. <div>Define whether the material color is affected by global fog settings.</div>
  43. <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>
  44. <h3>.[page:number gapSize]</h3>
  45. <div>
  46. The size of the gap. Default is 1.
  47. </div>
  48. <h3>.[page:number linewidth]</h3>
  49. <div>Controls line thickness. Default is 1.</div>
  50. <div>Due to limitations in the <a href="https://code.google.com/p/angleproject/" target="_blank">ANGLE layer</a>, on Windows platforms linewidth will always be 1 regardless of the set value.</div>
  51. <h2>Methods</h2>
  52. <h2>Source</h2>
  53. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  54. </body>
  55. </html>