Skip to content

Commit 1de9983

Browse files
committed
Fix file paths
1 parent 6637ada commit 1de9983

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

example/three/cesiumCompare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
66
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
77
import { GLTFExtensionsPlugin } from '3d-tiles-renderer/plugins';
88

9-
const url = new URLSearchParams( location.search ).get( 'url' ) || '../data/tileset.json';
9+
const url = new URLSearchParams( location.search ).get( 'url' ) || '../../data/tileset.json';
1010
const threeContainer = document.getElementById( 'three-container' );
1111
const cesiumContainer = document.getElementById( 'cesium-container' );
1212
const threeStats = threeContainer.getElementsByClassName( 'stats' )[ 0 ];

example/three/customMaterial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function initTiles() {
203203

204204
}
205205

206-
const url = window.location.hash.replace( /^#/, '' ) || '../data/tileset.json';
206+
const url = window.location.hash.replace( /^#/, '' ) || '../../data/tileset.json';
207207
tiles = new TilesRenderer( url );
208208
tiles.errorTarget = 2;
209209
tiles.addEventListener( 'load-model', onLoadModel );

example/three/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ animate();
7878

7979
function reinstantiateTiles() {
8080

81-
const url = hashUrl || '../data/tileset.json';
81+
const url = hashUrl || '../../data/tileset.json';
8282

8383
if ( tiles ) {
8484

example/three/offscreenShadows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function init() {
116116
scene.add( offsetParent );
117117

118118
// tiles
119-
const url = window.location.hash.replace( /^#/, '' ) || '../data/tileset.json';
119+
const url = window.location.hash.replace( /^#/, '' ) || '../../data/tileset.json';
120120
tiles = new TilesRenderer( url );
121121
tiles.addEventListener( 'load-model', onLoadModel );
122122
tiles.addEventListener( 'dispose-model', onDisposeModel );

0 commit comments

Comments
 (0)