Sfoglia il codice sorgente

Fix UASTC to BC7 target format selection

Alexey Knyazev 5 anni fa
parent
commit
2a6c961ace
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 ) {
 
-			targetFormat = hasAlpha ? TranscodeTarget.BC7_M5_RGBA : BC7_M6_RGB;
+			targetFormat = TranscodeTarget.BC7_M5_RGBA;
 			this.transcodedFormat = RGBA_BPTC_Format;
 
 		} else if ( config.dxtSupported ) {