-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcharizard.html
33 lines (31 loc) · 1.35 KB
/
charizard.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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>AR demo - Charizard</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" href="src/css/index.css"> -->
<script src="vendor/three.js/build/three.min.js"></script>
<script src="vendor/three.js/examples/js/loaders/MTLLoader.js"></script>
<script src="vendor/three.js/examples/js/loaders/OBJLoader.js"></script>
<script src="vendor/three.js/examples/js/controls/DeviceOrientationControls.js"></script>
<!-- <script src="vendor/three.js/examples/js/controls/OrbitControls.js"></script> -->
<script src="src/js/camera.js"></script>
<script src="src/js/renderscene.js"></script>
</head>
<body>
</body>
<script>
(function() {
if (location.protocol != 'https:') {
location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
}
let path = "/ar-demos/src/obj/charizard/";
let obj = "charizard.obj";
let mtl = "charizard.mtl";
renderScene(obj, mtl, path, 1.5, 1.5, 1.5, 1, -1, 1);
})();
</script>
</html>