Spaces:
Running
Running
Update index.html
Browse files- index.html +10 -3
index.html
CHANGED
|
@@ -22,8 +22,15 @@
|
|
| 22 |
</style>
|
| 23 |
</head>
|
| 24 |
<body>
|
| 25 |
-
<a-scene background="color: #000000" xr-mode-ui="enabled: true"
|
| 26 |
-
<a-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
<div id="bead" onclick="togglePanel()"></div>
|
| 29 |
|
|
@@ -68,7 +75,7 @@
|
|
| 68 |
plane.setAttribute('position', `${xOffset} 5 ${zOffset}`);
|
| 69 |
plane.setAttribute('material', 'shader:flat; side:double; color:#fff');
|
| 70 |
plane.setAttribute('class', 'draggable');
|
| 71 |
-
plane.setAttribute('
|
| 72 |
|
| 73 |
scene.appendChild(plane);
|
| 74 |
|
|
|
|
| 22 |
</style>
|
| 23 |
</head>
|
| 24 |
<body>
|
| 25 |
+
<a-scene background="color: #000000" xr-mode-ui="enabled: true">
|
| 26 |
+
<a-sky id="sky" src="galaxy.jpg" material="side: back"></a-sky>
|
| 27 |
+
<a-light type="ambient" color="#666"></a-light>
|
| 28 |
+
<a-light type="directional" intensity="0.6" position="5 10 5"></a-light>
|
| 29 |
+
|
| 30 |
+
<!-- VR Hands -->
|
| 31 |
+
<a-entity hand-controls="left"></a-entity>
|
| 32 |
+
<a-entity hand-controls="right"></a-entity>
|
| 33 |
+
</a-scene>
|
| 34 |
|
| 35 |
<div id="bead" onclick="togglePanel()"></div>
|
| 36 |
|
|
|
|
| 75 |
plane.setAttribute('position', `${xOffset} 5 ${zOffset}`);
|
| 76 |
plane.setAttribute('material', 'shader:flat; side:double; color:#fff');
|
| 77 |
plane.setAttribute('class', 'draggable');
|
| 78 |
+
plane.setAttribute('draggable', 'true');
|
| 79 |
|
| 80 |
scene.appendChild(plane);
|
| 81 |
|