lyunm1206
commited on
Commit
·
32bdaed
1
Parent(s):
67220f1
glb
Browse files- index.html +0 -2
- script.js +1 -1
- test2.glb +0 -0
index.html
CHANGED
@@ -36,7 +36,6 @@
|
|
36 |
shadow-intensity="1"
|
37 |
camera-controls
|
38 |
camera-orbit="0deg 180deg 90deg"
|
39 |
-
style="background-color: unset;"
|
40 |
>
|
41 |
</model-viewer>
|
42 |
</div>
|
@@ -52,7 +51,6 @@
|
|
52 |
shadow-intensity="1"
|
53 |
camera-controls
|
54 |
camera-orbit="0deg 180deg 90deg"
|
55 |
-
style="background-color: unset;"
|
56 |
>
|
57 |
</model-viewer>
|
58 |
</div>
|
|
|
36 |
shadow-intensity="1"
|
37 |
camera-controls
|
38 |
camera-orbit="0deg 180deg 90deg"
|
|
|
39 |
>
|
40 |
</model-viewer>
|
41 |
</div>
|
|
|
51 |
shadow-intensity="1"
|
52 |
camera-controls
|
53 |
camera-orbit="0deg 180deg 90deg"
|
|
|
54 |
>
|
55 |
</model-viewer>
|
56 |
</div>
|
script.js
CHANGED
@@ -6,7 +6,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
6 |
|
7 |
function updateModels() {
|
8 |
if (option2.checked) {
|
9 |
-
modelViewer1.setAttribute('src', '
|
10 |
modelViewer2.setAttribute('src', 'kodim08_30_sh.gltf');
|
11 |
} else {
|
12 |
// Set to default models or hide them
|
|
|
6 |
|
7 |
function updateModels() {
|
8 |
if (option2.checked) {
|
9 |
+
modelViewer1.setAttribute('src', 'test2.glb');
|
10 |
modelViewer2.setAttribute('src', 'kodim08_30_sh.gltf');
|
11 |
} else {
|
12 |
// Set to default models or hide them
|
test2.glb
ADDED
Binary file (512 kB). View file
|
|