Browse Source

Added webp file type to FBXLoader.js (#31098)

Timothy 1 year ago
parent
commit
213f35a1f4
1 changed files with 5 additions and 0 deletions
  1. 5 0
      examples/jsm/loaders/FBXLoader.js

+ 5 - 0
examples/jsm/loaders/FBXLoader.js

@@ -348,6 +348,11 @@ class FBXTreeParser {
 				type = 'image/tga';
 				break;
 
+			case 'webp':
+
+				type = 'image/webp';
+				break;
+
 			default:
 
 				console.warn( 'FBXLoader: Image type "' + extension + '" is not supported.' );

粤ICP备19079148号