-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (70 loc) · 2.75 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Prog 3: Rasterization Shell</title>
<link type="text/css" rel="stylesheet" href="rasterize.css">
<script type="text/javascript" src="gl-matrix-min.js"></script>
<script type="text/javascript" src="bsp.js"></script>
<script type="text/javascript" src="rasterize.js"></script>
</head>
<body onload="main();">
<canvas id="myImageCanvas" width="512" height="512"></canvas>
<div id="my_div">
<canvas id="myWebGLCanvas" width="512" height="512"></canvas>
<br>
<table>
<tr>When light is on, use "b" to toggle between replace and modulate light/texture blending mode</tr>
<tr>
<th>Options</th>
<td></td>
<td>
<input type="checkbox" id="UseLight" onchange="refresh()">Use Light<br>
<input type="checkbox" id="Multitexture" onchange="refresh()">Multitexture<br>
<input type="checkbox" id="Transparent" onchange="refresh()">Fragment Transparent<br>
<input type="checkbox" id="TextureTransparent" onchange="refresh()">Texture Transparent
</td>
<th>Sort</th>
<td>
<input type="radio" id="modelSort" onchange="refresh()" name="sort" value=0 checked>None<br>
<input type="radio" id="depthSort" onchange="refresh()" name="sort" value=1>Depth Sort<br>
<input type="radio" id="BSPTree" onchange="refresh()" name="sort" value=2>BSP Tree<br>
</td>
</tr>
<tr>
<th>Canvas</th>
<td>Width</td>
<td><input type="number" id="Width" value="512"></td>
<td>Height</td>
<td><input type="number" id="Height" value="512"></td>
</tr>
<tr>
</tr>
<tr>
<th>Window</th>
<td>Left</td>
<td><input type="number" id="WLeft" value="-0.1"></td>
<td>Right</td>
<td><input type="number" id="WRight" value="0.1"></td>
</tr>
<tr>
<td></td>
<td>Bottom</td>
<td><input type="number" id="WBottom" value="-0.1"></td>
<td>Top</td>
<td><input type="number" id="WTop" value="0.1"></td>
</tr>
<tr>
<td></td>
<td>Near</td>
<td><input type="number" id="WNear" value="0.1"></td>
<td>Far</td>
<td><input type="number" id="WFar" value="10"></td>
</tr>
</table>
<td><button onclick="refresh()" style="height: 25px;width: 500px;">Set Parameters</button></td>
<!--<label for="LightsURL">Lights JSON URL</label>-->
<!--<input type = "text" id="LightsURL" value="https://pages.github.ncsu.edu/kyang12/CSC561-program3/lights.json" style="width: 400px;">-->
</div>
</body>
</html>