Skip to content

Commit 68d0fb6

Browse files
authored
Examples: Clean up. (#24793)
1 parent 0432e2f commit 68d0fb6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/webgl_loader_gltf_instancing.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
<script type="importmap">
2323
{
2424
"imports": {
25-
"three": "../build/three.module.js"
25+
"three": "../build/three.module.js",
26+
"three/addons/": "./jsm/"
2627
}
2728
}
2829
</script>
@@ -31,9 +32,9 @@
3132

3233
import * as THREE from 'three';
3334

34-
import { OrbitControls } from './jsm/controls/OrbitControls.js';
35-
import { GLTFLoader } from './jsm/loaders/GLTFLoader.js';
36-
import { RGBELoader } from './jsm/loaders/RGBELoader.js';
35+
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
36+
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
37+
import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';
3738

3839
let camera, scene, renderer;
3940

@@ -46,7 +47,7 @@
4647
document.body.appendChild( container );
4748

4849
camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.25, 20 );
49-
camera.position.set( - 0.90, 0.41, -0.89 );
50+
camera.position.set( - 0.90, 0.41, - 0.89 );
5051

5152
scene = new THREE.Scene();
5253

0 commit comments

Comments
 (0)