提交 9ca9003e 编写于 作者: M Mr.doob

Geometry: Added sortFacesByMaterial(). See #7211.

上级 83990c8a
......@@ -863,6 +863,18 @@ THREE.Geometry.prototype = {
},
sortFacesByMaterial: function () {
function materialSort( a, b ) {
return a.materialIndex - b.materialIndex;
}
this.faces.sort( materialSort );
},
toJSON: function () {
var data = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册