浏览代码

Merge pull request #19916 from lexaknyazev/patch-1

Fix UASTC to BC7 target format selection
Don McCurdy 5 年之前
父节点
当前提交
4a8c4ae519
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ) {