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