Kaynağa Gözat

Migrate to three.js r172

customisations
alemart 7 ay önce
ebeveyn
işleme
11684ba362

+ 1
- 1
demos/hello-three/demo.js Dosyayı Görüntüle

@@ -224,7 +224,7 @@ class EnchantedDemo extends ARDemo
224 224
     _initLight()
225 225
     {
226 226
         const ambientLight = new THREE.AmbientLight(0xffffff);
227
-        ambientLight.intensity = 1.5;
227
+        ambientLight.intensity = 1.0 * Math.PI;
228 228
 
229 229
         const ar = this.ar;
230 230
         ar.scene.add(ambientLight);

+ 2
- 2
demos/hello-three/index.html Dosyayı Görüntüle

@@ -9,8 +9,8 @@
9 9
         <script type="importmap">
10 10
         {
11 11
             "imports": {
12
-                "three": "https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.module.js",
13
-                "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.147.0/examples/jsm/",
12
+                "three": "https://cdn.jsdelivr.net/npm/three@0.172.0/build/three.module.js",
13
+                "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.172.0/examples/jsm/",
14 14
                 "three-with-encantar": "../../plugins/three-with-encantar.js"
15 15
             }
16 16
         }

+ 2
- 2
demos/hello-three/video.html Dosyayı Görüntüle

@@ -9,8 +9,8 @@
9 9
         <script type="importmap">
10 10
         {
11 11
             "imports": {
12
-                "three": "https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.module.js",
13
-                "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.147.0/examples/jsm/",
12
+                "three": "https://cdn.jsdelivr.net/npm/three@0.172.0/build/three.module.js",
13
+                "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.172.0/examples/jsm/",
14 14
                 "three-with-encantar": "../../plugins/three-with-encantar.js"
15 15
             }
16 16
         }

+ 1
- 1
plugins/three-with-encantar.js Dosyayı Görüntüle

@@ -9,7 +9,7 @@ import * as THREE from 'three';
9 9
 /* Usage of the indicated versions is encouraged */
10 10
 __THIS_PLUGIN_HAS_BEEN_TESTED_WITH__({
11 11
     'encantar.js': { version: '0.4.1' },
12
-       'three.js': { version: '147' }
12
+       'three.js': { version: '172' }
13 13
 });
14 14
 
15 15
 /**

Loading…
İptal
Kaydet