Przeglądaj źródła

Update demo

customisations
alemart 11 miesięcy temu
rodzic
commit
8efa3c4549

+ 11
- 1
demos/hello-three/demo.js Wyświetl plik

82
 
82
 
83
         return null;
83
         return null;
84
     }
84
     }
85
+
86
+    referenceImageName(ar)
87
+    {
88
+        const referenceImage = this.referenceImage(ar);
89
+
90
+        if(referenceImage === null)
91
+            return null;
92
+
93
+        return referenceImage.name;
94
+    }
85
 }
95
 }
86
 
96
 
87
 
97
 
174
 
184
 
175
         // add light
185
         // add light
176
         const ambientLight = new THREE.AmbientLight(0xffffff);
186
         const ambientLight = new THREE.AmbientLight(0xffffff);
177
-        ambientLight.intensity = 1.4;
187
+        ambientLight.intensity = 1.5;
178
         ar.scene.add(ambientLight);
188
         ar.scene.add(ambientLight);
179
 
189
 
180
         // create the magic circle
190
         // create the magic circle

+ 1
- 1
demos/hello-three/index.html Wyświetl plik

18
                 <a id="about" href="NOTICE.html"></a>
18
                 <a id="about" href="NOTICE.html"></a>
19
             </div>
19
             </div>
20
         </div>
20
         </div>
21
-        <img id="my-reference-image" src="../assets/my-reference-image.webp" hidden>
21
+        <img id="my-reference-image" src="../assets/mage.webp" hidden>
22
     </body>
22
     </body>
23
 </html>
23
 </html>

+ 1
- 1
demos/hello-three/video.html Wyświetl plik

18
                 <a id="about" href="NOTICE.html"></a>
18
                 <a id="about" href="NOTICE.html"></a>
19
             </div>
19
             </div>
20
         </div>
20
         </div>
21
-        <img id="my-reference-image" src="../assets/my-reference-image.webp" hidden>
21
+        <img id="my-reference-image" src="../assets/mage.webp" hidden>
22
         <video id="my-video" hidden muted loop playsinline autoplay>
22
         <video id="my-video" hidden muted loop playsinline autoplay>
23
             <source src="../assets/my-video.webm" type="video/webm" />
23
             <source src="../assets/my-video.webm" type="video/webm" />
24
             <source src="../assets/my-video.mp4" type="video/mp4" />
24
             <source src="../assets/my-video.mp4" type="video/mp4" />

Ładowanie…
Anuluj
Zapisz