2
0

MeshPhysicalMaterial.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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; [page:MeshStandardMaterial] &rarr;
  12. <h1>物理网格材质([name])</h1>
  13. <p class="desc"> [page:MeshStandardMaterial]的扩展,能够更好地控制反射率。<br /><br />
  14. 请注意,为了获得最佳效果,您在使用此材质时应始终指定环境贴图。
  15. </p>
  16. <iframe id="scene" src="scenes/material-browser.html#MeshPhysicalMaterial"></iframe>
  17. <script>
  18. // iOS iframe auto-resize workaround
  19. if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
  20. var scene = document.getElementById( 'scene' );
  21. scene.style.width = getComputedStyle( scene ).width;
  22. scene.style.height = getComputedStyle( scene ).height;
  23. scene.setAttribute( 'scrolling', 'no' );
  24. }
  25. </script>
  26. <h2>例子(Examples)</h2>
  27. <p>
  28. [example:webgl_materials_variations_physical materials / variations / physical]<br />
  29. [example:webgl_materials_physical_clearcoat materials / physical / clearcoat]<br />
  30. [example:webgl_materials_physical_reflectivity materials / physical / reflectivity]<br />
  31. [example:webgl_materials_physical_transparency materials / physical / transparency]
  32. </p>
  33. <h2>构造函数(Constructor)</h2>
  34. <h3>[name]( [param:Object parameters] )</h3>
  35. <p> [page:Object parameters] - (可选)用于定义材质外观的对象,具有一个或多个属性。
  36. 材质的任何属性都可以从此处传入(包括从[page:Material]继承的任何属性)<br /><br />
  37. 属性[page:Hexadecimal color]例外,其可以作为十六进制字符串传递,默认情况下为 *0xffffff*(白色),内部调用[page:Color.set](color)。
  38. </p>
  39. <h2>属性(Properties)</h2>
  40. <p>共有属性请参见其基类[page:Material]。</p>
  41. <h3>[property:Float clearcoat]</h3>
  42. <p>
  43. Represents the thickness of the clear coat layer, from *0.0* to *1.0*. You can use clear coat related properties to enable multilayer
  44. materials that have a thin translucent layer over the base layer. Typical examples for this model are car paints or acrylic.
  45. Default is *0.0*.
  46. </p>
  47. <h3>[property:Float clearcoatNormalMap]</h3>
  48. <p>Can be used to enable independent normals for the clear coat layer. Default is *null*.</p>
  49. <h3>[property:Vector2 clearcoatNormalScale]</h3>
  50. <p>How much [page:.clearcoatNormalMap] affects the clear coat layer, from *(0,0)* to *(1,1)*. Default is *(1,1)*.</p>
  51. <h3>[property:Float clearcoatRoughness]</h3>
  52. <p>Roughness of the clear coat layer, from *0.0* to *1.0*. Default is *0.0*.</p>
  53. <h3>[property:Object defines]</h3>
  54. <p> 如下形式的对象:
  55. <code>
  56. {
  57. 'STANDARD': ''
  58. 'PHYSICAL': '',
  59. };
  60. </code>
  61. [page:WebGLRenderer]使用它来选择shaders。
  62. </p>
  63. <h3>[property:Float reflectivity]</h3>
  64. <p> 反射度,从*0.0*到*1.0*。默认值为*0.5*。<br />
  65. 这模拟了非金属材质的反射率。当[page:MeshStandardMaterial]为*1.0*时,此属性无效。
  66. </p>
  67. <h3>[property:Float transparency]</h3>
  68. <p>
  69. Degree of transparency, from *0.0* to *1.0*. Default is *0.0*.<br />
  70. Thin, transparent or semitransparent, plastic or glass materials remain largely reflective even if they are mostly transparent.
  71. The transparency property can be used to model these materials.<br />
  72. When transparency is non-zero, [page:Material.opacity opacity] should be set to *1*.
  73. </p>
  74. <h2>方法(Methods)</h2>
  75. <p>共有方法请参见其基类[page:Material] 和[page:MeshStandardMaterial]。</p>
  76. <h2>源码(Source)</h2>
  77. <p>
  78. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  79. </p>
  80. </body>
  81. </html>