-
Notifications
You must be signed in to change notification settings - Fork 62
/
tantalum.html
70 lines (67 loc) · 3.06 KB
/
tantalum.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tantalum - 2D Light Transport</title>
<link rel="stylesheet" href="ui.css">
<script type="text/javascript" src="src/thirdparty/canvasToBlob/canvasToBlob.js"></script>
<script type="text/javascript" src="src/thirdparty/FileSaver/FileSaver.js"></script>
<script type="text/javascript" src="src/spectrum.js"></script>
<script type="text/javascript" src="src/gasspectra.js"></script>
<script type="text/javascript" src="src/tantalum.js"></script>
<script type="text/javascript" src="src/tantalum-shaders.js"></script>
<script type="text/javascript" src="src/tantalum-core.js"></script>
<script type="text/javascript" src="src/tantalum-ui.js"></script>
<script type="text/javascript" src="src/tantalum-gl.js"></script>
</head>
<body onload="new Tantalum();">
<div class="tantalum-render" id="content">
<canvas id="render-canvas" width="820" height="461"></canvas>
<div id="render-overlay" class="render-loading">Loading...</div>
</div>
<div class="tantalum-controls" id="controls" style="visibility: hidden">
<div id="render-progress"></div>
<p class="progress-label" id="render-progress-label"></p>
<div class="control-row clearfix">
<div class="col-3-12 col-left col-padding">
<h3 class="control-title">Download</h3>
<div class="button stretch-button active" id="save-button">Download as PNG</div>
</div>
<div class="col-8-12 col-left col-padding">
<h3 class="control-title">Resolution</h3>
<div id="resolution-selector"></div>
</div>
</div>
<div class="control-row clearfix">
<div class="col-3-12 col-left col-padding">
<h3 class="control-title">Scene</h3>
<div id="scene-selector"></div>
</div>
<div class="col-6-12 col-left col-padding">
<h3 class="control-title">Emission Spectrum</h3>
<div class="center-tight">
<div id="emission-selector"></div>
<canvas id="spectrum-canvas" style="border: none;" width="425" height="256"></canvas>
<div id="emission-temperature"></div>
<div id="gas-selection"></div>
</div>
</div>
<div class="col-2-12 col-left">
<h3 class="control-title">Spread</h3>
<div id="spread-selector"></div>
</div>
</div>
<div class="control-row clearfix">
<div class="col-3-12 col-left col-padding">
<h3 class="control-title">Light Path Length</h3>
<div id="path-length"></div>
</div>
<div class="col-8-12 col-left col-padding">
<h3 class="control-title">Sample Count</h3>
<div id="sample-count"></div>
</div>
</div>
</div>
</body>
</html>