Skip to content

Commit 55504ff

Browse files
committed
removal of THREE.MeshFaceMaterial
1 parent de30c4d commit 55504ff

44 files changed

Lines changed: 205 additions & 206 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/api/core/Face3.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h3>[property:Array vertexColors]</h3>
7474

7575
<h3>[property:Integer materialIndex]</h3>
7676
<div>
77-
Material index (points to [page:MeshFaceMaterial MeshFaceMaterial.materials]).
77+
Material index (points to [page:MultiMaterial MultiMaterial.materials]).
7878
</div>
7979

8080
<h2>Methods</h2>

docs/api/extras/SceneUtils.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h3>[method:Object3D createMultiMaterialObject]([page:Geometry geometry], [page:
2222
materials -- The materials for the object.
2323
</div>
2424
<div>
25-
Creates an new Object3D an new mesh for each material defined in materials. Beware that this is not the same as Meshfacematerial which defines multiple material for 1 mesh.<br />
25+
Creates an new Object3D an new mesh for each material defined in materials. Beware that this is not the same as MultiMaterial which defines multiple material for 1 mesh.<br />
2626
This is mostly useful for object that need a material and a wireframe implementation.
2727
</div>
2828

docs/api/loaders/JSONLoader.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h2>Example</h2>
6161
'models/animated/monster/monster.js',
6262
// Function when resource is loaded
6363
function ( geometry, materials ) {
64-
var material = new THREE.MeshFaceMaterial( materials );
64+
var material = new THREE.MultiMaterial( materials );
6565
var object = new THREE.Mesh( geometry, material );
6666
scene.add( object );
6767
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<h1>[name]</h1>
1212

1313
<div class="desc">
14-
A Material to define multiple materials for the same geometry.
14+
A Material to define multiple materials for the same geometry.
1515
The geometry decides which material is used for which faces by the [page:Face3 faces materialindex].
1616
The materialindex corresponds with the index of the material in the materials array.
1717
</div>
@@ -25,7 +25,7 @@ <h3>[name]([page:Array materials])</h3>
2525
materials -- The materials for the geometry.
2626
</div>
2727
<div>
28-
Creates a MeshFaceMaterial with the correct materials.
28+
Creates a MultiMaterial with the correct materials.
2929
</div>
3030

3131

docs/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var list = {
7272
[ "Material", "api/materials/Material" ],
7373
[ "MeshBasicMaterial", "api/materials/MeshBasicMaterial" ],
7474
[ "MeshDepthMaterial", "api/materials/MeshDepthMaterial" ],
75-
[ "MeshFaceMaterial", "api/materials/MeshFaceMaterial" ],
75+
[ "MultiMaterial", "api/materials/MultiMaterial" ],
7676
[ "MeshLambertMaterial", "api/materials/MeshLambertMaterial" ],
7777
[ "MeshNormalMaterial", "api/materials/MeshNormalMaterial" ],
7878
[ "MeshPhongMaterial", "api/materials/MeshPhongMaterial" ],

editor/js/Loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ var Loader = function ( editor ) {
451451

452452
if ( result.materials.length > 1 ) {
453453

454-
material = new THREE.MeshFaceMaterial( result.materials );
454+
material = new THREE.MultiMaterial( result.materials );
455455

456456
} else {
457457

editor/js/Sidebar.Animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Sidebar.Animation = function ( editor ) {
3636
3737
var material = child.material;
3838
39-
if ( material instanceof THREE.MeshFaceMaterial ) {
39+
if ( material instanceof THREE.MultiMaterial ) {
4040
4141
for ( var i = 0; i < material.materials.length; i ++ ) {
4242

editor/js/libs/tern-threejs/threejs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
},
369369
"materialIndex": {
370370
"!type": "number",
371-
"!doc": "Material index (points to [page:MeshFaceMaterial MeshFaceMaterial.materials])."
371+
"!doc": "Material index (points to [page:MultiMaterial MultiMaterial.materials])."
372372
},
373373
"clone": {
374374
"!type": "fn() -> +THREE.Face3",
@@ -960,7 +960,7 @@
960960
"prototype": {
961961
"createMultiMaterialObject": {
962962
"!type": "fn(geometry: +THREE.Geometry, materials: []) -> +THREE.Object3D",
963-
"!doc": "Creates an new Object3D an new mesh for each material defined in materials. Beware that this is not the same as Meshfacematerial which defines multiple material for 1 mesh.<br>\n\t\tThis is mostly useful for object that need a material and a wireframe implementation."
963+
"!doc": "Creates an new Object3D an new mesh for each material defined in materials. Beware that this is not the same as MultiMaterial which defines multiple material for 1 mesh.<br>\n\t\tThis is mostly useful for object that need a material and a wireframe implementation."
964964
},
965965
"attach": {
966966
"!type": "fn(child: +THREE.Object3D, scene: +THREE.Object3D, parent: +THREE.Object3D)",
@@ -2839,8 +2839,8 @@
28392839
"!doc": "A material for drawing geometry by depth. Depth is based off of the camera near and far plane. White is nearest, black is farthest.",
28402840
"!type": "fn(parameters: object)"
28412841
},
2842-
"MeshFaceMaterial": {
2843-
"!url": "http://threejs.org/docs/#Reference/materials/MeshFaceMaterial",
2842+
"MultiMaterial": {
2843+
"!url": "http://threejs.org/docs/#Reference/materials/MultiMaterial",
28442844
"prototype": {
28452845
"materials": {
28462846
"!type": "[]",

examples/canvas_geometry_panorama.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
];
8383

84-
mesh = new THREE.Mesh( new THREE.BoxGeometry( 300, 300, 300, 7, 7, 7 ), new THREE.MeshFaceMaterial( materials ) );
84+
mesh = new THREE.Mesh( new THREE.BoxGeometry( 300, 300, 300, 7, 7, 7 ), new THREE.MultiMaterial( materials ) );
8585
mesh.scale.x = - 1;
8686
scene.add( mesh );
8787

examples/canvas_geometry_panorama_fisheye.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
];
8383

84-
mesh = new THREE.Mesh( new THREE.BoxGeometry( 300, 300, 300, 7, 7, 7 ), new THREE.MeshFaceMaterial( materials ) );
84+
mesh = new THREE.Mesh( new THREE.BoxGeometry( 300, 300, 300, 7, 7, 7 ), new THREE.MultiMaterial( materials ) );
8585
mesh.scale.x = - 1;
8686
scene.add( mesh );
8787

0 commit comments

Comments
 (0)