瀏覽代碼

Migrate to A-Frame 1.6.0

customisations
alemart 7 月之前
父節點
當前提交
c2874d3f0d
共有 3 個檔案被更改,包括 7 行新增7 行删除
  1. 3
    3
      demos/hello-aframe/index.html
  2. 3
    3
      demos/hello-aframe/video.html
  3. 1
    1
      plugins/aframe-with-encantar.js

+ 3
- 3
demos/hello-aframe/index.html 查看文件

@@ -6,7 +6,7 @@
6 6
         <title>encantar.js WebAR demo with A-Frame</title>
7 7
         <link href="../assets/demo.css" rel="stylesheet">
8 8
         <script src="../../dist/encantar.min.js"></script>
9
-        <script src="https://cdn.jsdelivr.net/npm/aframe@1.4.2/dist/aframe-v1.4.2.min.js"></script>
9
+        <script src="https://cdn.jsdelivr.net/npm/aframe@1.6.0/dist/aframe-v1.6.0.min.js"></script>
10 10
         <script src="../../plugins/aframe-with-encantar.js"></script>
11 11
         <script src="../../plugins/extras/aframe-scan-gimmick-for-encantar.js"></script>
12 12
         <script src="../../plugins/extras/aframe-gltf-anim.js"></script>
@@ -89,7 +89,7 @@
89 89
                 <a-entity rotation="-90 0 0" position="0 -0.8 0">
90 90
 
91 91
                     <!-- Light -->
92
-                    <a-light type="ambient" intensity="1.5"></a-light>
92
+                    <a-light type="ambient" intensity="1.0"></a-light>
93 93
 
94 94
                     <!-- 3D model -->
95 95
                     <a-entity
@@ -110,7 +110,7 @@
110 110
             <!-- The cat -->
111 111
             <ar-root reference-image="cat">
112 112
                 <a-entity rotation="-90 0 0" position="0 -0.8 0">
113
-                    <a-light type="ambient" intensity="1.5"></a-light>
113
+                    <a-light type="ambient" intensity="1.0"></a-light>
114 114
 
115 115
                     <a-entity
116 116
                         gltf-model="#cat-model" gltf-anim="clip: Cheer"

+ 3
- 3
demos/hello-aframe/video.html 查看文件

@@ -6,7 +6,7 @@
6 6
         <title>encantar.js WebAR demo with A-Frame</title>
7 7
         <link href="../assets/demo.css" rel="stylesheet">
8 8
         <script src="../../dist/encantar.min.js"></script>
9
-        <script src="https://cdn.jsdelivr.net/npm/aframe@1.4.2/dist/aframe-v1.4.2.min.js"></script>
9
+        <script src="https://cdn.jsdelivr.net/npm/aframe@1.6.0/dist/aframe-v1.6.0.min.js"></script>
10 10
         <script src="../../plugins/aframe-with-encantar.js"></script>
11 11
         <script src="../../plugins/extras/aframe-scan-gimmick-for-encantar.js"></script>
12 12
         <script src="../../plugins/extras/aframe-gltf-anim.js"></script>
@@ -89,7 +89,7 @@
89 89
                 <a-entity rotation="-90 0 0" position="0 -0.8 0">
90 90
 
91 91
                     <!-- Light -->
92
-                    <a-light type="ambient" intensity="1.5"></a-light>
92
+                    <a-light type="ambient" intensity="1.0"></a-light>
93 93
 
94 94
                     <!-- 3D model -->
95 95
                     <a-entity
@@ -110,7 +110,7 @@
110 110
             <!-- The cat -->
111 111
             <ar-root reference-image="cat">
112 112
                 <a-entity rotation="-90 0 0" position="0 -0.8 0">
113
-                    <a-light type="ambient" intensity="1.5"></a-light>
113
+                    <a-light type="ambient" intensity="1.0"></a-light>
114 114
 
115 115
                     <a-entity
116 116
                         gltf-model="#cat-model" gltf-anim="clip: Cheer"

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

@@ -9,7 +9,7 @@
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
-        'A-Frame': { version: '1.4.2' }
12
+        'A-Frame': { version: '1.6.0' }
13 13
 });
14 14
 
15 15
 /**

Loading…
取消
儲存