소스 검색

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 ) {