-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (38 loc) · 1.08 KB
/
index.html
File metadata and controls
38 lines (38 loc) · 1.08 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Plastic Case</title>
<style>
body { margin: 0; }
canvas { display: block; }
#saveButton {
position: fixed;
bottom: 20px;
right: 20px;
padding: 10px 20px;
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.4);
color: white;
border-radius: 5px;
cursor: pointer;
backdrop-filter: blur(5px);
}
#saveButton:hover {
background: rgba(255, 255, 255, 0.3);
}
</style>
</head>
<body>
<button id="saveButton">Save PNG</button>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.172.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.172.0/examples/jsm/",
"postprocessing": "https://cdn.jsdelivr.net/npm/postprocessing@6.36.7/+esm"
}
}
</script>
<script type="module" src="sketch.js"></script>
</body>
</html>