-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.html
More file actions
25 lines (25 loc) · 765 Bytes
/
index.html
File metadata and controls
25 lines (25 loc) · 765 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Simple AR - A Web based AR for A-Frame</title>
<script src="https://aframe.io/releases/1.4.2/aframe.min.js"></script>
</head>
<body>
<script
src="https://cdn.jsdelivr.net/gh/akbartus/Simple-AR/dist/0.1.2/simple-ar.min.js"
onload="onWasmLoaded();"
></script>
<a-scene>
<a-entity simple-ar="src: img/target.jpg; minCutOffValue: 1; betaValue:0.1;">
<a-plane
position="0 0 0"
rotation="0 0 0"
width="1"
height="1"
material="src: https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg"
></a-plane>
</a-entity>
<a-camera position="0 0 0"></a-camera>
</a-scene>
</body>
</html>