-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (115 loc) · 5.63 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
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ray Tracer</title>
<link rel="stylesheet" href="css/lib/tether.min.css" />
<link rel="stylesheet" href="css/lib/bootstrap.min.css" />
<link rel="stylesheet" href="css/lib/pace-theme-minimal.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="container">
<div class="jumbotron" id="parent">
<h1 class="display-3">Real-Time Ray Tracing</h1>
<hr class="m-y-2">
<div class="col-xs-12">
<div class="btn-group pull-xs-left" role="group">
<button type="button" class="btn btn-primary btn-large" id="switch" data-toggle="tooltip" data-placement="top" title="Toggle GPU/CPU mode">GPU</button>
<button type="button" class="btn btn-info btn-large" id="fps" data-toggle="tooltip" data-placement="top" title="Toggle FPS throttling mode">0 fps</button>
</div>
<div class="btn-group" role="group" data-toggle="buttons">
<label class="btn btn-warning btn-large btn-resolution active">
<input type="radio" name="size" value="192" checked> Resolution 144p
</label>
<label class="btn btn-warning btn-large btn-resolution">
<input type="radio" name="size" value="320"> 240p
</label>
<label class="btn btn-warning btn-large btn-resolution">
<input type="radio" name="size" value="480"> 360p
</label>
<label class="btn btn-warning btn-large btn-resolution">
<input type="radio" name="size" value="640"> 480p
</label>
<label class="btn btn-warning btn-large btn-resolution">
<input type="radio" name="size" value="960"> 720p
</label>
</div>
<div class="btn-group pull-xs-right" role="group">
<button type="button" class="btn btn-success btn-large" id='toggle'>Play</button>
</div>
</div>
<div class="col-xs-12">
<div class="btn-group pull-xs-left" role="group" data-toggle="buttons">
<label class="btn btn-warning btn-large btn-antialiasing active">
<input type="radio" name="level" value="1" checked> Anti-Aliasing Off
</label>
<label class="btn btn-warning btn-large btn-antialiasing">
<input type="radio" name="level" value="2"> 2x
</label>
<label class="btn btn-warning btn-large btn-antialiasing">
<input type="radio" name="level" value="4"> 4x
</label>
<label class="btn btn-warning btn-large btn-antialiasing">
<input type="radio" name="level" value="6"> 6x
</label>
<label class="btn btn-warning btn-large btn-antialiasing">
<input type="radio" name="level" value="8"> 8x
</label>
</div>
<div class="btn-group pull-xs-right" role="group" data-toggle="buttons">
<label class="btn btn-warning btn-large btn-bounces active">
<input type="radio" name="depth" value="0" checked> No bounces
</label>
<label class="btn btn-warning btn-large btn-bounces">
<input type="radio" name="depth" value="1"> 1
</label>
<label class="btn btn-warning btn-large btn-bounces">
<input type="radio" name="depth" value="2"> 2
</label>
<label class="btn btn-warning btn-large btn-bounces">
<input type="radio" name="depth" value="3"> 3
</label>
<label class="btn btn-warning btn-large btn-bounces">
<input type="radio" name="depth" value="4"> 4
</label>
</div>
</div>
<div class="col-xs-12">
<div class="btn-group pull-xs-left" role="group">
<button type="button" class="btn btn-warning btn-large" id='decreaseSpeed'>−</button>
<button type="button" class="btn btn-warning btn-large" id='resetSpeed' data-toggle="tooltip" data-placement="bottom" title="Reset Speed">Speed</button>
<button type="button" class="btn btn-warning btn-large" id='increaseSpeed'>+</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-warning btn-large" id='rotateLeft'><-</button>
<button type="button" class="btn btn-warning btn-large" id='resetCamera' data-toggle="tooltip" data-placement="bottom" title="Reset Camera">Camera</button>
<button type="button" class="btn btn-warning btn-large" id='rotateRight'>-></button>
</div>
<div class="btn-group pull-xs-right" role="group">
<button type="button" class="btn btn-warning btn-large" id='zoomOut'>−</button>
<button type="button" class="btn btn-warning btn-large" id='resetZoom' data-toggle="tooltip" data-placement="bottom" title="Reset Zooming">Zoom</button>
<button type="button" class="btn btn-warning btn-large" id='zoomIn'>+</button>
</div>
</div>
<hr id="beforeCanvas">
<canvas id='c'></canvas>
<hr class="m-y-2">
<footer class="footer" id="footer">
Copyright © 2016 <a href="https://github.com/xinan">Liu Xinan</a> | Powered by <a href="https://github.com/gpujs/gpu.js">gpu.js</a>
</footer>
</div>
</div>
<script src="js/lib/jquery.min.js"></script>
<script src="js/lib/tether.min.js"></script>
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/lib/pace.min.js"></script>
<script src="js/lib/gpu.min.js"></script>
<script src="js/scene.js?nocache"></script>
<script src="js/vector.js?nocache"></script>
<script src="js/gpu.js?nocache"></script>
<script src="js/main.js?nocache"></script>
</body>
</html>