提交 1d980057 编写于 作者: M Mr.doob

Added call to .sortFacesByMaterial() in relevant examples.

上级 0f9ff784
......@@ -560,6 +560,8 @@
function createScene( geometry, car ) {
geometry.sortFacesByMaterial();
var m = new THREE.MeshFaceMaterial(),
s = CARS[ car ].scale * 1,
r = CARS[ car ].init_rotation,
......
......@@ -100,6 +100,8 @@
}
geometry_pieces.sortFacesByMaterial();
objects = [];
for ( var i = 0, l = materials.length; i < l; i ++ ) {
......
......@@ -568,6 +568,8 @@
function createScene( geometry, car ) {
geometry.sortFacesByMaterial();
var m = new THREE.MeshFaceMaterial(),
s = CARS[ car ].scale * 1,
r = CARS[ car ].init_rotation,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册