-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
57 lines (50 loc) · 2.15 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
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MMD Models</title>
<meta name="description" content="A-Frame MMD loader component">
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/kripken/ammo.js/dcab07bf0e7f2b4b64c01dc45da846344c8f50be/builds/ammo.js"></script>
<script src="https://cdn.rawgit.com/takahirox/aframe-outline/v1.1.1/build/aframe-outline.min.js"></script>
<script src="./build/a-mmd.js"></script>
</head>
<body>
<!--
The license of MMD assets used here
https://github.com/mrdoob/three.js/tree/dev/examples/models/mmd#readme
-->
<a-scene antialias="true" outline stats>
<a-assets>
<img id="sky" crossorigin="anonymous" src="https://cdn.rawgit.com/aframevr/aframe/v0.7.1/examples/primitives/models/peach-gradient.jpg">
</a-assets>
<a-entity position="0 13 13">
<a-camera></a-camera>
</a-entity>
<a-entity mmd="audio:https://cdn.rawgit.com/mrdoob/three.js/r87/examples/models/mmd/audios/wavefile_short.mp3;
audioDelayTime:5.333333333333333; afterglow:2.0;">
<a-entity mmd-model="model:https://cdn.rawgit.com/mrdoob/three.js/r87/examples/models/mmd/miku/miku_v2.pmd;
vmd:https://cdn.rawgit.com/mrdoob/three.js/r87/examples/models/mmd/vmds/wavefile_v2.vmd;
physics:true;"
shadow="cast:true"
position="0 0 0"></a-entity>
</a-entity>
<a-plane rotation="-90 0 0"
color="#AAAAAA"
height="200"
width="200"
shadow="receive:true"></a-plane>
<a-sky src="#sky"></a-sky>
<a-entity light="type:directional;
castShadow:true;
color:#888;
shadowMapWidth:1024;
shadowMapHeight:1024;
shadowCameraRight:20;
shadowCameraTop:20;
shadowCameraLeft:-20;
shadowCameraBottom:-20"
position="-20 20 20"></a-entity>
</a-scene>
</body>
</html>