2
0

MeshNormalMaterial.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. <p class="desc">一种把法向量映射到RGB颜色的材质。</p>
  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]( [param:Object parameters] )</h3>
  26. <p> [page:Object parameters] - (可选)用于定义材质外观的对象,具有一个或多个属性。材质的任何属性都可以从此处传入(包括从[page:Material]继承的任何属性)。
  27. </p>
  28. <h2>属性(Properties)</h2>
  29. <p>常用属性请参见基类[page:Material]。</p>
  30. <h3>[property:Boolean fog]</h3>
  31. <p>材质是否受雾影响。默认值为*false*。</p>
  32. <h3>[property:Boolean isMeshNormalMaterial]</h3>
  33. <p> 用于检查此类或派生类是否为法线网格材质。默认值为 *true*。<br /><br />
  34. 因为其通常用在内部优化,所以不应该更改该属性值。
  35. </p>
  36. <h3>[property:Boolean lights]</h3>
  37. <p>材质是否受到光照的影响。默认值为 *false*。</p>
  38. <h3>[property:boolean morphTargets]</h3>
  39. <p>定义材质是否使用morphTargets。默认值为false。</p>
  40. <h3>[property:boolean wireframe]</h3>
  41. <p>
  42. 将几何体渲染为线框。默认值为*false*(即渲染为平滑着色)。
  43. </p>
  44. <h3>[property:Float wireframeLinewidth]</h3>
  45. <p>控制线框宽度。默认值为1。<br /><br />
  46. 由于[link:https://www.khronos.org/registry/OpenGL/specs/gl/glspec46.core.pdf OpenGL Core Profile]与大多数平台上[page:WebGLRenderer WebGL]渲染器的限制,无论如何设置该值,线宽始终为1。
  47. </p>
  48. <h2>方法(Methods)</h2>
  49. <p>常用方法请参见基类[page:Material]。</p>
  50. <h2>源码(Source)</h2>
  51. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  52. </body>
  53. </html>