-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (28 loc) · 1.02 KB
/
index.html
File metadata and controls
32 lines (28 loc) · 1.02 KB
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
<!DOCTYPE html>
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="https://aframe.io/releases/0.2.0/aframe.js"></script>
<style>
body
{
background-color: black;
}
</style>
</head>
<body>
<a-scene>
<a-assets>
<a-asset-item id="object" src="models/pokeball-vray.obj"></a-asset-item>
<a-asset-item id="material" src="models/pokeball-vray.mtl"></a-asset-item>
</a-assets>
<!-- Using the asset management system. -->
<a-obj-model src="#object" mtl="#material"></a-obj-model>
<!-- Defining the URL inline. Not recommended but may be more comfortable. -->
<!--obj-model src="models/pokeball-vray.obj" mtl="models/pokeball-vray.mtl"></a-obj-model>-->
<a-entity position="0 200 150">
<a-camera></a-camera>
</a-entity>
</a-scene>
</body>
</html>