-
Notifications
You must be signed in to change notification settings - Fork 0
/
threejs-demo.html
32 lines (31 loc) · 1.05 KB
/
threejs-demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ThreeJS Demo</title>
<style>
* {padding: 0;margin: 0;box-sizing: border-box;}
body{background: black;}
#fullscreen{position: fixed;z-index: 10;right: 10px;top: 10px;}
</style>
</head>
<body>
<button id="fullscreen" onclick="toggleFullScreen()">FULLSCREEN</button>
<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "./js/three.module.js",
"three/addons/": "./js/jsm/"
}
}
</script>
<!-- <script src="js/three.min.js"></script> -->
<script type="module" src="js/main.js"></script>
<script src="js/actions.js"></script>
</body>
</html>