Quellcode durchsuchen

iphone workaround while waiting for basis transcoder bugfix

Trevor Baron vor 6 Jahren
Ursprung
Commit
7f480834ae
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 1 1
      dist/preview release/what's new.md
  2. 3 1
      src/Misc/basis.ts

+ 1 - 1
dist/preview release/what's new.md

@@ -4,7 +4,7 @@
 - WIP: Node Material (NEED DOC OR SAMPLES) ([Deltakosh](https://github.com/deltakosh/))
 - WIP: Node material editor (NEED OR AND VIDEOS) ([Deltakosh](https://github.com/deltakosh/)/[TrevorDev](https://github.com/TrevorDev))
 - WIP: WebGPU support (NEED DOC OR SAMPLES) ([Sebavan](https://github.com/sebavan/)
-- WIP: .basis texture file format support [Doc](https://doc.babylonjs.com/resources/multi-platform_compressed_textures#basis-file-format) ([TrevorDev](https://github.com/TrevorDev))
+- .basis texture file format support [Doc](https://doc.babylonjs.com/resources/multi-platform_compressed_textures#basis-file-format) ([TrevorDev](https://github.com/TrevorDev))
 
 ## Optimizations
 

+ 3 - 1
src/Misc/basis.ts

@@ -265,7 +265,9 @@ function workerFunc(): void {
             }else if (config.supportedCompressionFormats.s3tc) {
                 format = fileInfo.hasAlpha ? _BASIS_FORMAT.cTFBC3 : _BASIS_FORMAT.cTFBC1;
             }else if (config.supportedCompressionFormats.pvrtc) {
-                format = _BASIS_FORMAT.cTFPVRTC1_4_OPAQUE_ONLY;
+                // TODO uncomment this after pvrtc bug is fixed is basis transcoder
+                // See discussion here: https://github.com/mrdoob/three.js/issues/16524#issuecomment-498929924
+                // format = _BASIS_FORMAT.cTFPVRTC1_4_OPAQUE_ONLY;
             }else if (config.supportedCompressionFormats.etc2) {
                 format = _BASIS_FORMAT.cTFETC2;
             }