MeshPhysicalMaterial.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. parameters -- see [page:MeshStandardMaterial]
  31. </div>
  32. <h2>Properties</h2>
  33. <div>See the base [page:Material] and [page:MeshStandardMaterial] classes for common properties.</div>
  34. <h3>[property:Float reflectivity]</h3>
  35. <div>
  36. Degree of reflectivity, from *0.0* to *1.0*. Default is *0.5*.<br />
  37. This models the reflectivity of non-metallic materials. It has no effect when [page:MeshStandardMaterial.metalness metalness] is *1.0*
  38. </div>
  39. <h3>[property:Float clearCoat]</h3>
  40. <div>
  41. ClearCoat level, from *0.0* to *1.0*. Default is *0.0*.
  42. </div>
  43. <h3>[property:Float clearCoatRoughness]</h3>
  44. <div>
  45. How rough the clearCoat appears, from *0.0* to *1.0*. Default is *0.0*.
  46. </div>
  47. <h2>Source</h2>
  48. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  49. </body>
  50. </html>