-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (96 loc) · 4.57 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>3D Earth Globe</title>
<link rel="stylesheet" href="earth.css" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix-min.js"
integrity="sha512-zhHQR0/H5SEBL3Wn6yYSaTTZej12z0hVZKOv3TwCUXT1z5qeqGcXJLLrbERYRScEDDpYIJhPC1fk31gqR783iQ=="
crossorigin="anonymous" defer>
</script>
<!-- <script src="https://twgljs.org/dist/4.x/twgl-full.min.js"></script> -->
<script src="earth.js" defer></script>
</head>
<body>
<div class="container">
<div>
<canvas id="glcanvas" width="256" height="256"></canvas>
</div>
<canvas hidden id="hiddencanvas" width="0" height="0"></canvas>
<div class="controls">
<h3>Rendering</h3>
<select id="drawMode">
<option disabled selected>Draw mode</option>
<option value="TRIANGLES">Triangles *</option>
<option value="TILES_GRID">Colored Tiles</option>
<option value="POINTS">Points</option>
<option value="LINES">Lines</option>
<option value="LINE_STRIP">Line Strip</option>
<option value="LINE_LOOP">Line Loop</option>
<option value="TRIANGLE_STRIP">Triangle Strip</option>
<option value="TRIANGLE_FAN">Triangle Fan</option>
</select>
<span>* denotes default values</span>
<br>
<div class="sliderGroup">
<input type="text" id="sliderMinVertexZoomText" disabled />
<input type="range" id="sliderMinVertexZoom" min="2" max="7" step="1" />
</div>
<div class="sliderGroup">
<input type="text" id="sliderVertexSpiralText" disabled />
<input type="range" id="sliderVertexSpiral" min="1" max="4" step="1" />
</div>
<h3>Zoom / Distance</h3>
<div class="">
Sync zooms <input type="checkbox" id="syncZoom" checked />
</div>
<div class="sliderGroup">
<input type="text" id="sliderEyePosText" disabled />
<input type="range" id="sliderEyePos" min="0" max="20" step="0.00333" />
</div>
<div class="sliderGroup">
<input type="text" id="sliderVertexZoomText" disabled />
<input type="range" id="sliderVertexZoom" min="2" max="20" step="1" />
</div>
<div class="sliderGroup">
<input type="text" id="sliderTextureZoomText" disabled />
<input type="range" id="sliderTextureZoom" min="0" max="18" step="1" />
</div>
<h3>Camera</h3>
<div class="sliderGroup">
<input type="text" id="sliderEyeAngleText" disabled />
<!-- <input type="range" id="sliderEyeAngle" min="0" max="1" step="0.05" value="0" />-->
<input type="range" id="sliderEyeAngle" min="0" max="89" step="1" value="0" />
</div>
<div class="sliderGroup">
<input type="text" id="latText" disabled />
<input type="text" id="sliderRotLatSpeedText" disabled />
<input type="range" id="sliderRotLatSpeed" min="0" max="10" step="0.1" />
</div>
<div class="sliderGroup">
<input type="text" id="lonText" disabled />
<input type="text" id="sliderRotLonSpeedText" disabled />
<input type="range" id="sliderRotLonSpeed" min="0" max="10" step="0.1" />
</div>
<div class="sliderGroup">
<input type="text" id="sliderFOVAngleText" disabled />
<input type="range" id="sliderFOVAngle" min="5" max="175" step="1" />
</div>
<h3>Target (center)</h3>
<div>
<input type="text" id="targetLatText" disabled />
<input type="text" id="targetLonText" disabled />
<input type="text" id="targetDistText" disabled />
</div>
<div>
<input type="text" id="targetTileZoomText" disabled />
<input type="text" id="targetTileXText" disabled />
<input type="text" id="targetTileYText" disabled />
</div>
<div>
<input type="text" id="targetProjDistText" disabled />
</div>
</div>
</div>
</body>
</html>