提交 156f6b74 编写于 作者: M Mr.doob

Geometry: Renamed .sortFacesByMaterial() to .sortFacesByMaterialIndex(). See...

Geometry: Renamed .sortFacesByMaterial() to .sortFacesByMaterialIndex(). See 9ca9003e.
上级 c85e896f
...@@ -560,7 +560,7 @@ ...@@ -560,7 +560,7 @@
function createScene( geometry, car ) { function createScene( geometry, car ) {
geometry.sortFacesByMaterial(); geometry.sortFacesByMaterialIndex();
var m = new THREE.MeshFaceMaterial(), var m = new THREE.MeshFaceMaterial(),
s = CARS[ car ].scale * 1, s = CARS[ car ].scale * 1,
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
} }
geometry.sortFacesByMaterial(); geometry.sortFacesByMaterialIndex();
objects = []; objects = [];
......
...@@ -568,7 +568,7 @@ ...@@ -568,7 +568,7 @@
function createScene( geometry, car ) { function createScene( geometry, car ) {
geometry.sortFacesByMaterial(); geometry.sortFacesByMaterialIndex();
var m = new THREE.MeshFaceMaterial(), var m = new THREE.MeshFaceMaterial(),
s = CARS[ car ].scale * 1, s = CARS[ car ].scale * 1,
......
...@@ -863,15 +863,15 @@ THREE.Geometry.prototype = { ...@@ -863,15 +863,15 @@ THREE.Geometry.prototype = {
}, },
sortFacesByMaterial: function () { sortFacesByMaterialIndex: function () {
function materialSort( a, b ) { function materialIndexSort( a, b ) {
return a.materialIndex - b.materialIndex; return a.materialIndex - b.materialIndex;
} }
this.faces.sort( materialSort ); this.faces.sort( materialIndexSort );
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册