-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (29 loc) · 1.33 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
<html>
<head>
<meta charset="utf-8">
<title>Contenta A-Frame</title>
<meta name="description" content="An A-Frame WebVR consumer for Contenta CMS.">
<script src="build.js"></script>
</head>
<body style="background-color: #030404">
<a-scene>
<a-assets>
<img id="floor" src="images/floor.jpg">
<img id="skymap" src="images/sky.jpg">
<a-asset-item id="layout" src="models/layout.dae"></a-asset-item>
<a-asset-item id="bowl" src="models/bowl.dae"></a-asset-item>
<a-asset-item id="stove-door" src="models/stove-door.dae"></a-asset-item>
</a-assets>
<a-entity collada-model="#layout" rotation="0 180 0"></a-entity>
<a-entity collada-model="#bowl" position="-0.926 0.01 -1.052"></a-entity>
<a-entity collada-model="#stove-door" position="0.967 -0.097 -0.49" rotation="0 -70.18732990352585 0"></a-entity>
<a-entity id="ground"
geometry="primitive: circle; radius: 12;"
rotation="-90 0 0"
material="shader: flat; src: #floor"></a-entity>
<a-entity id="sky"
geometry="primitive:sphere; radius:30; phiLength:360; phiStart:0; thetaLength:90"
material="shader:flat; side:back; height:2048; src:#skymap; width:2048"></a-entity>
</a-scene>
</body>
</html>