فهرست منبع

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 ) {
 
-			targetFormat = hasAlpha ? TranscodeTarget.BC7_M5_RGBA : BC7_M6_RGB;
+			targetFormat = TranscodeTarget.BC7_M5_RGBA;
 			this.transcodedFormat = RGBA_BPTC_Format;
 
 		} else if ( config.dxtSupported ) {