forked from gtongue/WebGLWater
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (67 loc) · 2.28 KB
/
index.html
File metadata and controls
70 lines (67 loc) · 2.28 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
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WebGL Examples</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">
<script src="./dist/bundle.js"></script>
</head>
<body>
<div class = "root">
<div class="info-container">
<div class="title">
<h1>
WebGL Water Simulation
</h1>
<div class="checkbox-container">
<input type="checkbox" name="wireframe" id="wireframe">
<label for="wireframe"> Wireframe </label>
</div>
</div>
<div class = "sliders">
<div class = "slider-container">
<p id = "amplitudeVal"></p>
<input id = "amplitude" type="range" min = "1" max = "300" value = "150"/>
</div>
<div class = "slider-container">
<p id = "wavelengthVal"></p>
<input id = "wavelength" type="range" min = "40" max = "400" value = "200"/>
</div>
<div class = "slider-container">
<p id = "frequencyVal"></p>
<input id = "frequency" type="range" min = "0" max = "400" value = "300"/>
</div>
<div class = "slider-container">
<p id = "steepnessVal"></p>
<input id = "steepness" type="range" min = "0" max = "100" value = "100"/>
</div>
<div class = "slider-container">
<p id = "rVal"></p>
<input id = "r" type="range" min = "0" max = "255" value = "125"/>
</div>
<div class = "slider-container">
<p id = "gVal"></p>
<input id = "g" type="range" min = "0" max = "255" value = "125"/>
</div>
<div class = "slider-container">
<p id = "bVal"></p>
<input id = "b" type="range" min = "0" max = "255" value = "235"/>
</div>
<div class = "slider-container">
<p id = "aVal"></p>
<input id = "a" type="range" min = "0" max = "255" value = "125"/>
</div>
</div>
</div>
<div class="webgl-container">
<div class="info">
A Gerstner wave simulation using vanilla JavaScript and WebGL
</br>
Use the arrow keys on your keyboard to rotate the view
</div>
<canvas id = "webgl" ref = "canvas">
</canvas>
</div>
</div>
</body>
</html>