-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
28 lines (25 loc) · 1.09 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>A-Frame Outline component</title>
<meta name="description" content="A-Frame Outline component">
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.12.4/dist/aframe-extras.min.js"></script>
<script src="./build/aframe-outline.min.js"></script>
</head>
<body>
<a-scene antialias="true" outline stats>
<a-assets>
<img id="sky" crossorigin="anonymous" src="https://raw.githubusercontent.com/aframevr/aframe/v0.7.1/examples/primitives/models/peach-gradient.jpg">
<a-asset-item id="model" src="https://cdn.rawgit.com/mrdoob/three.js/r87/examples/models/skinned/knight.js"></a-asset-item>
</a-assets>
<a-entity position="0 5 16">
<a-camera></a-camera>
</a-entity>
<a-entity json-model="src:#model" animation-mixer="clip:Action"></a-entity>
<a-sky src="#sky"></a-sky>
<a-entity light="type:directional;color:#FFFFFF" position="-1 1 1"></a-entity>
</a-scene>
</body>
</html>