Fix GLTFLoader DDSExtension
@@ -2117,15 +2117,19 @@ THREE.GLTFLoader = ( function () {
return this.getDependency( 'texture', mapDef.index ).then( function ( texture ) {
- switch ( mapName ) {
-
- case 'aoMap':
- case 'emissiveMap':
- case 'metalnessMap':
- case 'normalMap':
- case 'roughnessMap':
- texture.format = THREE.RGBFormat;
- break;
+ if ( ! texture.isCompressedTexture ) {
+
+ switch ( mapName ) {
+ case 'aoMap':
+ case 'emissiveMap':
+ case 'metalnessMap':
+ case 'normalMap':
+ case 'roughnessMap':
+ texture.format = THREE.RGBFormat;
+ break;
+ }
}