-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex_shadow3.html
51 lines (31 loc) · 1.22 KB
/
index_shadow3.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
<!doctype HTML>
<html>
<!-- include A-Frame obviously -->
<script src="static/build/aframe-v1.0.0.min.js"></script>
<script src="static/build/aframe-shadow-plane.js"></script>
<!-- include ar.js for A-Frame -->
<script src="static/build/aframe-ar-nft.js"></script>
<!-- include A-Frame-Extras -->
<script src="static/build/aframe-extras.min.js"></script>
<script src="static/build/animation-mixer.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false;'>
<a-assets>
<a-asset-item id="tree" src="static/3Dmodels/scene.gltf">
</a-assets>
<!-- load gltf model -->
<a-marker preset='custom' type='pattern' url='static/build/data/pattern-marker.patt'>
<a-entity position="0 0 0"
rotation="90 0 0"
scale="0.2 0.2 0.2"
animation-mixer="clip: *;"
shadow='receive: false'
gltf-model="#tree">
</a-entity>
<!-- <a-entity rotation="0 0 0" shadowonly-plane='width: 24; height: 12; opacity: 0.7'></a-entity> -->
</a-marker>
<!-- add camera -->
<a-entity camera></a-entity>
</a-scene>
</body>
</html>