Parcourir la source

Update index.js

Garrett Johnson il y a 4 ans
Parent
commit
e2f5a64db9
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 ) {