MeshPhysicalMaterial.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <div class="desc">An extension of the [page:MeshStandardMaterial] that allows for greater control over reflectivity.</div>
  14. <!-- <iframe id="scene" src="scenes/material-browser.html#MeshStandardMaterial"></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>Examples</h2>
  25. [example:webgl_materials_variations_physical materials / variations / physical]<br />
  26. [example:webgl_materials_reflectivity materials / reflectivity]
  27. <h2>Constructor</h2>
  28. <h3>[name]( [page:Object parameters] )</h3>
  29. <div>
  30. [page:Object parameters] - (optional) an object with one or more properties defining the material's appearance.
  31. Any property of the material (including any property inherited from [page:Material] and [page:MeshStandardMaterial]) can be passed in here.<br /><br />
  32. The exception is the property [page:Hexadecimal color], which can be passed in as a hexadecimal
  33. string and is *0xffffff* (white) by default. [page:Color.set]( color ) is called internally.
  34. </div>
  35. <h2>Properties</h2>
  36. <div>See the base [page:Material] and [page:MeshStandardMaterial] classes for common properties.</div>
  37. <h3>[property:Float clearCoat]</h3>
  38. <div>
  39. ClearCoat level, from *0.0* to *1.0*. Default is *0.0*.
  40. </div>
  41. <h3>[property:Float clearCoatRoughness]</h3>
  42. <div>How rough the clearCoat appears, from *0.0* to *1.0*. Default is *0.0*.</div>
  43. <h3>[property:Boolean isMeshPhysicalMaterial]</h3>
  44. <div>
  45. Used to check whether this or derived classes are mesh physical materials. Default is *true*.<br /><br />
  46. You should not change this, as it used internally for optimisation.
  47. </div>
  48. <h3>[property:Object defines]</h3>
  49. <div>An object of the form:
  50. <code>
  51. { 'PHYSICAL': '' };
  52. </code>
  53. This is used by the [page:WebGLRenderer] for selecting shaders.
  54. </div>
  55. <h3>[property:Float reflectivity]</h3>
  56. <div>
  57. Degree of reflectivity, from *0.0* to *1.0*. Default is *0.5*.<br />
  58. This models the reflectivity of non-metallic materials. It has no effect when [page:MeshStandardMaterial.metalness metalness] is *1.0*
  59. </div>
  60. <h2>Methods</h2>
  61. <div>See the base [page:Material] and [page:MeshStandardMaterial] classes for common methods.</div>
  62. <h2>Source</h2>
  63. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  64. </body>
  65. </html>