-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (51 loc) · 1.28 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype>
<html>
<head>
<meta charset="UTF-8">
<title>ray tracing experiments</title>
<style>
body { margin: 0; background: black; }
canvas { position: fixed; width: 100% !important; height: 100% !important; }
select {
position: absolute;
left: 80px;
top: 0;
z-index: 1;
background: black;
color: #0cf;
font-size: 24px;
border: none;
opacity: .6;
cursor: pointer;
}
</style>
</head>
<body>
<label for="select-shader"></label>
<select id="select-shader">
<option>upstream</option>
<option>cube</option>
<option>spongebob</option>
<option>mountains</option>
<option>night</option>
<option>refraction</option>
</select>
<canvas></canvas>
<script src="lib/require.js"></script>
<script>
require.config({
baseUrl: './',
paths: {
three: 'lib/three',
stats: 'lib/stats',
text: 'lib/text'
},
shim: {
three: { exports: 'THREE' },
stats: { exports: 'Stats' }
}
});
require(['main']);
</script>
</body>
</html>