-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (33 loc) · 1.73 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>8th Wall Web: Tap to place</title>
<!-- We've included a slightly modified version of A-Frame, which fixes some polish concerns -->
<script src="//cdn.8thwall.com/web/aframe/8frame-1.3.0.min.js"></script>
<!-- XR Extras - provides utilities like load screen, almost there, and error handling.
See github.com/8thwall/web/tree/master/xrextras -->
<script src="//cdn.8thwall.com/web/xrextras/xrextras.js"></script>
<!-- Landing Pages - see https://www.8thwall.com/docs/web/#landing-pages -->
<script src='//cdn.8thwall.com/web/landing-page/landing-page.js'></script>
<!-- 8thWall Web - Replace the app key here with your own app key -->
<script async
src="//apps.8thwall.com/xrweb?appKey=4AHlJqYnByKJbRtGgXRhMSB6cqzsTMNWbda0blpvJTKp02mYcNqVPxclnlcxuomvVpr3dS"></script>
<script src="wall-from-floor.js"></script>
</head>
<body>
<!-- We must add the tap-place component to the scene so it has an effect -->
<a-scene landing-page xrextras-loading xrextras-runtime-error xrweb>
<!-- The raycaster will emit mouse events on scene objects specified with the cantap class -->
<a-camera id="camera" position="0 8 8"></a-camera>
<a-box id="box" wall-from-floor color="white" width="5.5" depth="0.25" height="0.1">
</a-box>
<a-entity light="type: directional; intensity: 0.6;" position="1 4.3 2.5">
</a-entity>
<a-light type="ambient" intensity="1"></a-light>
<a-entity id="ground" class="cantap" geometry="primitive: box"
material="color: #fff; transparent: true; opacity: 0" scale="1000 2 1000" position="0 -1 0">
</a-entity>
</a-scene>
</body>
</html>