소스 검색

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 );
 	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 );
-				
+
 			}
-			
+
 		} );
 
 	};