浏览代码

Merge pull request #6430 from TrevorDev/basisUseCDN

use cdn for basis module
David Catuhe 6 年之前
父节点
当前提交
8081bc88d4
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      dist/preview release/what's new.md
  2. 1 2
      src/Misc/basis.ts

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

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

+ 1 - 2
src/Misc/basis.ts

@@ -35,8 +35,7 @@ class BasisFileInfo {
 export class BasisTools {
     private static _IgnoreSupportedFormats = false;
     private static _LoadScriptPromise: any = null;
-    // TODO should load from cdn location as fallback once it exists
-    private static _FallbackURL = "../dist/preview%20release/basisTranscoder/basis_transcoder.js";
+    private static _FallbackURL = "https://preview.babylonjs.com/basisTranscoder/basis_transcoder.js";
     private static _BASIS_FORMAT = {
         cTFETC1: 0,
         cTFBC1: 1,