Browse Source

Update index.js

Garrett Johnson 4 years ago
parent
commit
e2f5a64db9
1 changed files with 2 additions and 2 deletions
  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 ) {