MeshDepthMaterial.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 geometry by depth. Depth is based off of the camera near and far plane. White is nearest, black is farthest.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]([page:Object parameters])</h3>
  15. <div>
  16. parameters is an object with one or more properties defining the material's appearance.
  17. </div>
  18. <div>
  19. wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).<br/>
  20. wireframeLinewidth -- Controls wireframe thickness. Default is 1.<br/>
  21. </div>
  22. <h2>Properties</h2>
  23. <h3>.[page:boolean wireframe]</h3>
  24. <div>Render geometry as wireframe. Default is false (i.e. render as smooth shaded).</div>
  25. <h3>.[page:number wireframeLinewidth]</h3>
  26. <div>
  27. Controls wireframe thickness. Default is 1.<br/><br/>
  28. Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
  29. </div>
  30. <h2>Methods</h2>
  31. <h2>Source</h2>
  32. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  33. </body>
  34. </html>