|
@@ -22,7 +22,8 @@
|
|
|
<script type="importmap">
|
|
|
{
|
|
|
"imports": {
|
|
|
- "three": "../build/three.module.js"
|
|
|
+ "three": "../build/three.module.js",
|
|
|
+ "three/addons/": "./jsm/"
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -31,9 +32,9 @@
|
|
|
|
|
|
import * as THREE from 'three';
|
|
|
|
|
|
- import { OrbitControls } from './jsm/controls/OrbitControls.js';
|
|
|
- import { GLTFLoader } from './jsm/loaders/GLTFLoader.js';
|
|
|
- import { RGBELoader } from './jsm/loaders/RGBELoader.js';
|
|
|
+ import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
|
|
+ import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
|
|
+ import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';
|
|
|
|
|
|
let camera, scene, renderer;
|
|
|
|
|
@@ -46,7 +47,7 @@
|
|
|
document.body.appendChild( container );
|
|
|
|
|
|
camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.25, 20 );
|
|
|
- camera.position.set( - 0.90, 0.41, -0.89 );
|
|
|
+ camera.position.set( - 0.90, 0.41, - 0.89 );
|
|
|
|
|
|
scene = new THREE.Scene();
|
|
|
|