浏览代码

Migrate to three.js r172

customisations
alemart 7 个月前
父节点
当前提交
11684ba362
共有 4 个文件被更改,包括 6 次插入6 次删除
  1. 1
    1
      demos/hello-three/demo.js
  2. 2
    2
      demos/hello-three/index.html
  3. 2
    2
      demos/hello-three/video.html
  4. 1
    1
      plugins/three-with-encantar.js

+ 1
- 1
demos/hello-three/demo.js 查看文件

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

+ 2
- 2
demos/hello-three/index.html 查看文件

9
         <script type="importmap">
9
         <script type="importmap">
10
         {
10
         {
11
             "imports": {
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
                 "three-with-encantar": "../../plugins/three-with-encantar.js"
14
                 "three-with-encantar": "../../plugins/three-with-encantar.js"
15
             }
15
             }
16
         }
16
         }

+ 2
- 2
demos/hello-three/video.html 查看文件

9
         <script type="importmap">
9
         <script type="importmap">
10
         {
10
         {
11
             "imports": {
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
                 "three-with-encantar": "../../plugins/three-with-encantar.js"
14
                 "three-with-encantar": "../../plugins/three-with-encantar.js"
15
             }
15
             }
16
         }
16
         }

+ 1
- 1
plugins/three-with-encantar.js 查看文件

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

正在加载...
取消
保存