MeshNormalMaterial.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Material] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">A material that maps the normal vectors to RGB colors.</div>
  14. <iframe id="scene" src="scenes/material-browser.html#MeshNormalMaterial"></iframe>
  15. <script>
  16. // iOS iframe auto-resize workaround
  17. if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
  18. var scene = document.getElementById( 'scene' );
  19. scene.style.width = getComputedStyle( scene ).width;
  20. scene.style.height = getComputedStyle( scene ).height;
  21. scene.setAttribute( 'scrolling', 'no' );
  22. }
  23. </script>
  24. <h2>Constructor</h2>
  25. <h3>[name]( [page:Object parameters] )</h3>
  26. <div>
  27. parameters is an object with one or more properties defining the material's appearance.
  28. </div>
  29. <div>
  30. wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).<br/>
  31. wireframeLinewidth -- Controls wireframe thickness. Default is 1.<br/>
  32. morphTargets -- Define whether the material uses morphTargets. Default is false.<br/>
  33. </div>
  34. <h2>Properties</h2>
  35. <div>See the base [page:Material] class for common properties.</div>
  36. <h3>[property:boolean wireframe]</h3>
  37. <div>
  38. Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
  39. </div>
  40. <h3>[property:number wireframeLinewidth]</h3>
  41. <div>
  42. Controls wireframe thickness. Default is 1.<br/><br/>
  43. Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
  44. </div>
  45. <h3>[property:boolean morphTargets]</h3>
  46. <div>Define whether the material uses morphTargets. Default is false.</div>
  47. <h2>Methods</h2>
  48. <h2>Source</h2>
  49. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  50. </body>
  51. </html>