/
index.html
53 lines (35 loc) · 1.64 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
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-environment-component/dist/aframe-environment-component.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.1/dist/aframe-extras.min.js"></script>
<script src="https://rawgit.com/takahirox/aframe-outline/master/build/aframe-outline.min.js"></script>
<style>
.vignette {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-shadow: 0 0 200px rgba(0,0,0,0.9) inset;
z-index: 3;
}
</style>
</head>
<body>
<div class="vignette"></div>
<a-scene outline>
<a-camera far="60" near="0.1"></a-camera>
<a-assets>
<img id="boxTexture" src="https://2.bp.blogspot.com/-oIcJCDSd4Pk/UFwYUIaEj7I/AAAAAAAACOE/jQEoayseiv4/s1600/Tileable+eroded+scratch+metal+texture+background+00.jpg">
<a-asset-item id="woman" src="/assets/scene.gltf"></a-asset-item>
</a-assets>
<a-entity environment="preset: poison; dressingAmount: 500"></a-entity>
<a-entity gltf-model="#woman" position="0 0 -.5" rotation="0 -90 0"></a-entity>
<a-entity gltf-model="#monster" animation-mixer></a-entity>
<a-light type="ambient" color="#cf9b6d"></a-light>
<a-light type="point" intensity=".02" position="2 4 4" color="#e527a8"></a-light>
</a-scene>
</body>
</html>