Browse Source

Update index.js

Garrett Johnson 4 years ago
parent
commit
b648ee0194
1 changed files with 4 additions and 5 deletions
  1. 4 5
      example/index.js

+ 4 - 5
example/index.js

@@ -104,20 +104,19 @@ function reinstantiateTiles() {
 	tiles.manager.addHandler( /\.gltf$/, loader );
 	offsetParent.add( tiles.group );
 
-
 	// Used with CUSTOM_COLOR_MODE
 	tiles.customColorCallback = ( tile, object ) => {
 
 		const depthIsEven = tile.__depth % 2 === 0;
 		const hex = depthIsEven ? 0xff0000 : 0xffffff;
 		object.traverse( c => {
-			
+
 			if ( c.isMesh ) {
-			
+
 				c.material.color.set( hex );
-				
+
 			}
-			
+
 		} );
 
 	};