MeshNormalMaterial.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <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. morphTargets -- Define whether the material uses morphTargets. Default is false.<br/>
  20. shading -- How the triangles of a curved surface are rendered. Default is [page:Materials THREE.SmoothShading].<br/>
  21. wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).<br/>
  22. wireframeLinewidth -- Controls wireframe thickness. Default is 1.<br/>
  23. </div>
  24. <h2>Properties</h2>
  25. <h3>.[page:boolean morphTargets]</h3>
  26. <div>Define whether the material uses morphTargets. Default is false.</div>
  27. <h3>.[page:number shading]</h3>
  28. <div>
  29. How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.<br/><br/>
  30. Options are [page:Materials THREE.SmoothShading] (default), [page:Materials THREE.FlatShading]
  31. </div>
  32. <h3>.[page:boolean wireframe]</h3>
  33. <div>
  34. Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
  35. </div>
  36. <h3>.[page:number wireframeLinewidth]</h3>
  37. <div>
  38. Controls wireframe thickness. Default is 1.<br/><br/>
  39. Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
  40. </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>