Browse Source

Fix UASTC to BC7 target format selection

Alexey Knyazev 5 years ago
parent
commit
2a6c961ace
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/loaders/KTX2Loader.js

+ 1 - 1
examples/jsm/loaders/KTX2Loader.js

@@ -467,7 +467,7 @@ class KTX2Container {
 
 
 		} else if ( config.bptcSupported && texFormat === TextureFormat.UASTC4x4 ) {
 		} else if ( config.bptcSupported && texFormat === TextureFormat.UASTC4x4 ) {
 
 
-			targetFormat = hasAlpha ? TranscodeTarget.BC7_M5_RGBA : BC7_M6_RGB;
+			targetFormat = TranscodeTarget.BC7_M5_RGBA;
 			this.transcodedFormat = RGBA_BPTC_Format;
 			this.transcodedFormat = RGBA_BPTC_Format;
 
 
 		} else if ( config.dxtSupported ) {
 		} else if ( config.dxtSupported ) {