-
Notifications
You must be signed in to change notification settings - Fork 69
/
dice.html
39 lines (31 loc) · 1.65 KB
/
dice.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
<!DOCTYPE html>
<html>
<head>
<title>Polyhedral Dice</title>
<meta name="description" content="Polyhedral Dice">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=">
<script src="js/aframe-v1.3.0.js"></script>
<script src="js/aframe-environment-component.js"></script>
</head>
<body>
<a-scene environment="preset: default;" background="color: #000000;">
<a-assets>
<a-asset-item id="d6" src="models/dice/d6.glb"></a-asset-item>
<a-asset-item id="d8" src="models/dice/d8.glb"></a-asset-item>
<a-asset-item id="d10" src="models/dice/d10.glb"></a-asset-item>
<a-asset-item id="d12" src="models/dice/d12.glb"></a-asset-item>
<a-asset-item id="d20" src="models/dice/d20.glb"></a-asset-item>
<a-asset-item id="d100" src="models/dice/d100.glb"></a-asset-item>
</a-assets>
<a-entity camera look-controls wasd-controls="acceleration: 5" position="0 1.6 0">
<a-entity light="type: point; color: #888888; distance: 10;"></a-entity>
</a-entity>
<a-entity id="p6" gltf-model="#d6" position="-0.5 1.7 -1" rotation=" 0 180 -90"></a-entity>
<a-entity id="p8" gltf-model="#d8" position=" 0.0 1.7 -1" rotation=" 60 180 -90"></a-entity>
<a-entity id="p12" gltf-model="#d12" position=" 0.5 1.7 -1" rotation=" 0 170 -55"></a-entity>
<a-entity id="p20" gltf-model="#d20" position="-0.5 1.3 -1" rotation=" 0 0 180"></a-entity>
<a-entity id="p10" gltf-model="#d10" position=" 0.0 1.3 -1" rotation="-75 0 18"></a-entity>
<a-entity id="p100" gltf-model="#d100" position=" 0.5 1.3 -1" rotation=" 95 0 -50"></a-entity>
</a-scene>
</body>
</html>