浏览代码

Update index.js

Garrett Johnson 4 年之前
父节点
当前提交
e2f5a64db9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      example/index.js

+ 2 - 2
example/index.js

@@ -106,11 +106,11 @@ function reinstantiateTiles() {
 
 
 	// Used with CUSTOM_COLOR_MODE
-	tiles.customColorCallback = ( tile, child ) => {
+	tiles.customColorCallback = ( tile, object ) => {
 
 		const depthIsEven = tile.__depth % 2 === 0;
 		const hex = depthIsEven ? 0xff0000 : 0xffffff;
-		child.traverse( c => {
+		object.traverse( c => {
 			
 			if ( c.isMesh ) {