Skip to content

Commit 18a33cb

Browse files
authored
portal effect (#203)
1 parent 792d6d1 commit 18a33cb

2 files changed

Lines changed: 436 additions & 0 deletions

File tree

examples/splat-portal/index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>spark | splat-portal</title>
7+
<style>
8+
html, body, #canvas { width: 100%; height: 100%; margin: 0; padding: 0; display: block; }
9+
body { background: #000; overflow: hidden; }
10+
.legend {
11+
position: absolute;
12+
top: 20px;
13+
left: 20px;
14+
color: white;
15+
font-family: Arial, sans-serif;
16+
font-size: 16px;
17+
background: rgba(0, 0, 0, 0.7);
18+
padding: 10px 15px;
19+
border-radius: 5px;
20+
pointer-events: none;
21+
z-index: 100;
22+
}
23+
</style>
24+
</head>
25+
<body>
26+
<canvas id="canvas"></canvas>
27+
<div class="legend">WASD + Mouse to move camera • Go through portal to switch between worlds</div>
28+
<script type="module" src="./main.js"></script>
29+
</body>
30+
</html>
31+

0 commit comments

Comments
 (0)