소스 검색

USDZExporter: Clean up

Mr.doob 4 년 전
부모
커밋
3759ffa3da
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/jsm/exporters/USDZExporter.js

+ 2 - 2
examples/jsm/exporters/USDZExporter.js

@@ -39,7 +39,7 @@ class USDZExporter {
 		for ( const uuid in textures ) {
 
 			const texture = textures[ uuid ];
-			files[ 'Texture_' + texture.id + '.jpg' ] = await img2U8( texture.image );
+			files[ 'Texture_' + texture.id + '.jpg' ] = await imgToU8( texture.image );
 
 		}
 
@@ -49,7 +49,7 @@ class USDZExporter {
 
 }
 
-async function img2U8( image ) {
+async function imgToU8( image ) {
 
 	if ( ( typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement ) ||
 		( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) ||