Преглед изворни кода

Fix UASTC to BC7 target format selection

Alexey Knyazev пре 5 година
родитељ
комит
2a6c961ace
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 ) {

粤ICP备19079148号