-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Three and Babylon Imports to be a Versioned CDN
* Change all of the importing of both Babylon and Three packages in our examples and integration tests to point to a versioned CDN, rather than live. * Update Package.json to point to the same version specified in the CDN
- Loading branch information
Showing
11 changed files
with
11,595 additions
and
393 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,7 @@ | |
src="https://sdk.amazonaws.com/js/aws-sdk-2.645.0.min.js" | ||
></script> | ||
<!--Three.js dependencies--> | ||
<script src="https://threejs.org/build/three.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script> | ||
<!--Host build file--> | ||
<script type="text/javascript" src="../dist/host.three.js"></script> | ||
</head> | ||
|
@@ -177,8 +177,8 @@ | |
|
||
<!--Create the Three.js scene--> | ||
<script type="module"> | ||
import {OrbitControls} from 'https://threejs.org/examples/jsm/controls/OrbitControls.js'; | ||
import {GLTFLoader} from 'https://threejs.org/examples/jsm/loaders/GLTFLoader.js'; | ||
import { OrbitControls } from 'https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/controls/OrbitControls.js' | ||
import { GLTFLoader } from 'https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/loaders/GLTFLoader.js' | ||
|
||
const renderFn = []; | ||
const speakers = new Map([ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,9 @@ | |
</head> | ||
|
||
<body> | ||
<script src="https://preview.babylonjs.com/babylon.js"></script> | ||
<script src="https://preview.babylonjs.com/loaders/babylonjs.loaders.min.js"></script> | ||
<script src="https://threejs.org/examples/js/libs/dat.gui.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/babylonjs@4.2.1/babylon.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/babylonjs-loaders@4.2.1/babylonjs.loaders.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/libs/dat.gui.min.js"></script> | ||
<script type="text/javascript" src="../../../dist/host.babylon.js"></script> | ||
<script> | ||
async function main() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,11 @@ | |
|
||
<body> | ||
<div id="container"></div> | ||
<script src="https://threejs.org/build/three.min.js"></script> | ||
<script src="https://threejs.org/examples/js/loaders/GLTFLoader.js"></script> | ||
<script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script> | ||
<script src="https://threejs.org/examples/js/libs/dat.gui.min.js"></script> | ||
<script src="https://threejs.org/examples/js/libs/stats.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/loaders/GLTFLoader.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/controls/OrbitControls.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/libs/dat.gui.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/libs/stats.min.js"></script> | ||
<script type="text/javascript" src="../../../dist/host.three.js"></script> | ||
<script> | ||
async function main() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ | |
type="text/javascript" | ||
src="https://sdk.amazonaws.com/js/aws-sdk-2.645.0.min.js" | ||
></script> | ||
<script src="https://threejs.org/build/three.min.js"></script> | ||
<script src="https://threejs.org/examples/js/loaders/GLTFLoader.js"></script> | ||
<script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/loaders/GLTFLoader.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/controls/OrbitControls.js"></script> | ||
<script type="text/javascript" src="../../../dist/host.three.js"></script> | ||
<script> | ||
async function main() { | ||
|