MeshNormalMaterial.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 that maps the normal vectors to RGB colors.</div>
  13. <iframe src='../../scenes/material-browser.html#MeshNormalMaterial'></iframe>
  14. <h2>Constructor</h2>
  15. <h3>[name]([page:Object parameters])</h3>
  16. <div>
  17. parameters is an object with one or more properties defining the material's appearance.
  18. </div>
  19. <div>
  20. morphTargets -- Define whether the material uses morphTargets. Default is false.<br/>
  21. shading -- How the triangles of a curved surface are rendered. Default is [page:Materials THREE.SmoothShading].<br/>
  22. wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).<br/>
  23. wireframeLinewidth -- Controls wireframe thickness. Default is 1.<br/>
  24. </div>
  25. <h2>Properties</h2>
  26. <h3>.[page:boolean morphTargets]</h3>
  27. <div>Define whether the material uses morphTargets. Default is false.</div>
  28. <h3>.[page:number shading]</h3>
  29. <div>
  30. How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.<br/><br/>
  31. Options are [page:Materials THREE.SmoothShading], [page:Materials THREE.FlatShading] (default)
  32. </div>
  33. <h3>.[page:boolean wireframe]</h3>
  34. <div>
  35. Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
  36. </div>
  37. <h3>.[page:number wireframeLinewidth]</h3>
  38. <div>
  39. Controls wireframe thickness. Default is 1.<br/><br/>
  40. Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
  41. </div>
  42. <h2>Methods</h2>
  43. <h2>Source</h2>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </body>
  46. </html>