Bläddra i källkod

Update index.js

Garrett Johnson 4 år sedan
förälder
incheckning
e2f5a64db9
1 ändrade filer med 2 tillägg och 2 borttagningar
  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 ) {