source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/src/materials/MeshFaceMaterial.js@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 410 bytes
Line 
1/**
2 * @author mrdoob / http://mrdoob.com/
3 */
4
5THREE.MeshFaceMaterial = function ( materials ) {
6
7 this.materials = materials instanceof Array ? materials : [];
8
9};
10
11THREE.MeshFaceMaterial.prototype.clone = function () {
12
13 var material = new THREE.MeshFaceMaterial();
14
15 for ( var i = 0; i < this.materials.length; i ++ ) {
16
17 material.materials.push( this.materials[ i ].clone() );
18
19 }
20
21 return material;
22
23};
Note: See TracBrowser for help on using the repository browser.