MultiMaterial.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. <h1>[name]</h1>
  12. <div class="desc">
  13. A Material to define multiple materials for the same geometry.
  14. The geometry decides which material is used for which faces by the [page:Face3 faces materialindex].
  15. The material index corresponds with the index of the material in the [page:.materials] array.
  16. </div>
  17. <h2>Constructor</h2>
  18. <h3>[name]( [page:Array materials] )</h3>
  19. <div>
  20. [page:Array materials] -- an array of [page:Material Materials] to be used in the MultiMaterial.<br /><br />
  21. Creates a new [name].
  22. </div>
  23. <h2>Properties</h2>
  24. <h3>[property:Boolean isMultiMaterial]</h3>
  25. <div>
  26. Used to check whether this or derived classes are multi materials. Default is *true*.<br /><br />
  27. You should not change this, as it used internally for optimisation.
  28. </div>
  29. <h3>[property:Array materials]</h3>
  30. <div>An array containing the materials being used by the MultiMaterial.</div>
  31. <h3>[property:String uuid]</h3>
  32. <div>
  33. [link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this material instance.
  34. This gets automatically assigned, so this shouldn't be edited.
  35. </div>
  36. <h3>[property:Array visible]</h3>
  37. <div>Whether or not [page:Mesh meshes] using this material should be rendered.</div>
  38. <h2>Methods</h2>
  39. <h3>[method:MultiMaterial clone]()</h3>
  40. <div>Return a clone of this MultiMaterial.</div>
  41. <h3>[method:null toJSON]( [page:object meta] )</h3>
  42. <div>
  43. meta -- object containing metadata such as textures or images for the material.<br />
  44. Convert the material to Three JSON format.
  45. </div>
  46. <h2>Source</h2>
  47. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  48. </body>
  49. </html>