-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·49 lines (46 loc) · 1.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Project B</title>
<style type =" text/ css"> canvas {border: 2px dotted blue;} </style>
</head>
<body onload="main()" onresize="onResize()">
<canvas id="webgl" width="800" height="500">
Please use a browser that supports "canvas"
</canvas>
<br>
<b>Ray Tracer: Press 't' to Trace!</b> (left: WebGL Scene Preview. Right: Ray-Traced Result.)
<br>
<button type="button" onclick="onSuperSampleButton()" >Super-Sampling</button>
<button type="button" onclick="onJitterButton()">Jitter</button>
<span id='AAreport'> 1 sample/pixel. No jitter. </span>
<span>(Higher Sampling rate may take a while to see result.)</span>
<br>
<button type="button" onclick="onSceneButton()" >Change Scene</button>
<span id='SceneReport'> Show Scene Number 0 </span>
<button type="button" onclick="onRecurseButton()" >Change Recurse Depth</button>
<span id='RecurseReport'> Recurse Depth 1 </span>
<button onclick="onLamp1Button()">switch lamp1</button>
<button onclick="onLamp2Button()">switch lamp2</button>
<br>
Mouse Drag: Aims the camera (turns left,right,up,down)
<br>
W/S; A/D keys: move camera forward/backwards; strafe left/right. Q/E: strafe down/up.
I/K; J/L keys: move light forward/backwards; strafe left/right. U/O: strafe down/up.
<br>
<script src="lib/cuon-matrix-quat03.js"></script>
<script src="lib/webgl-utils.js"></script>
<script src="lib/webgl-debug.js"></script>
<script src="lib/cuon-utils.js"></script>
<script src="lib/glmatrix.js"></script>
<script src="lib/materials_Ayerdi04.js"></script>
<script src="js/GUIbox-Lib.js" ></script>
<script src="js/Camera.js"></script>
<script src="js/Geom.js" ></script>
<script src="js/ImgBuf.js"></script>
<script src="js/Scene.js" ></script>
<script src="js/VBObox-Lib.js" ></script>
<script src="js/RayTracer.js" ></script>
</body>
</html>