123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <div class="desc">
- A Material to define multiple materials for the same geometry.
- The geometry decides which material is used for which faces by the [page:Face3 faces materialindex].
- The material index corresponds with the index of the material in the [page:.materials] array.
- </div>
- <h2>Constructor</h2>
- <h3>[name]( [page:Array materials] )</h3>
- <div>
- [page:Array materials] -- an array of [page:Material Materials] to be used in the MultiMaterial.<br /><br />
- Creates a new [name].
- </div>
- <h2>Properties</h2>
- <h3>[property:Boolean isMultiMaterial]</h3>
- <div>
- Used to check whether this or derived classes are multi materials. Default is *true*.<br /><br />
- You should not change this, as it used internally for optimisation.
- </div>
- <h3>[property:Array materials]</h3>
- <div>An array containing the materials being used by the MultiMaterial.</div>
- <h3>[property:String uuid]</h3>
- <div>
- [link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this material instance.
- This gets automatically assigned, so this shouldn't be edited.
- </div>
- <h3>[property:Array visible]</h3>
- <div>Whether or not [page:Mesh meshes] using this material should be rendered.</div>
- <h2>Methods</h2>
- <h3>[method:MultiMaterial clone]()</h3>
- <div>Return a clone of this MultiMaterial.</div>
- <h3>[method:null toJSON]( [page:object meta] )</h3>
- <div>
- meta -- object containing metadata such as textures or images for the material.<br />
- Convert the material to Three JSON format.
- </div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|