-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·26 lines (25 loc) · 1.07 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
<!DOCTYPE html>
<html>
<head>
<!-- polyfill for importmaps, in case ur browser don't support it -->
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/es-module-shims.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>...</title>
<link rel="stylesheet" type="text/css" href="./style.css">
</head>
<body id="container">
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
"WebGL": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/capabilities/WebGL.js",
"controls": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/controls/OrbitControls.js",
"GLTFLoader": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/loaders/GLTFLoader.js",
"MeshoptDecoder": "https://cdn.jsdelivr.net/gh/zeux/meshoptimizer@latest/js/meshopt_decoder.module.js"
}
}
</script>
<script defer type="module" src="./testingGLTF.js"></script>
</body>
</html>