-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (60 loc) · 2 KB
/
index.html
File metadata and controls
65 lines (60 loc) · 2 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>BABYLON.MapboxLayer</title>
<script src="../../Tools/DevLoader/BabylonLoader.js"></script>
<style>
html, body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
.centered {
position: fixed;
top: 20px;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
<script src='https://api.mapbox.com/mapbox-gl-js/v1.11.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v1.11.1/mapbox-gl.css' rel='stylesheet' />
<link href="https://api.mapbox.com/mapbox-assembly/v0.24.0/assembly.min.css" rel="stylesheet">
<script async defer src="https://api.mapbox.com/mapbox-assembly/v0.24.0/assembly.js"></script>
</head>
<body>
<div id="map"></div>
<div class="fixed centered">
<div class='select-container'>
<label>
<select class='select' id="scene-selector">
<option value="basic-scene-layer">Basic Scene</option>
<option value="gltf-layer">GLTF</option>
<option value="light-projected-layer">Light Projected Texture</option>
<option value="picking-layer">Cannon</option>
<option value="materials-layer">Materials</option>
<option value="pbr-layer">PBR</option>
<option value="shadow-layer">Shadow</option>
</select>
</label>
<div class='select-arrow'></div>
</div>
<label class='checkbox-container'>
<input type='checkbox' id="debug-layer" />
<div class='checkbox mr6'>
<svg class='icon'><use xlink:href='#icon-check' /></svg>
</div>
Debug Layer
</label>
</div>
<script type="module" src="index.js"></script>
</body>
</html>