瀏覽代碼

Update index.js

Garrett Johnson 4 年之前
父節點
當前提交
b648ee0194
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      example/index.js

+ 4 - 5
example/index.js

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