forked from erichlof/Babylon.js-PathTracing-Renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Babylon_Path_Tracing.html
66 lines (47 loc) · 2.02 KB
/
Babylon_Path_Tracing.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
<!DOCTYPE html>
<html lang="en">
</html>
<head>
<title>Babylon PathTracing Renderer</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<style>
html,
body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
</style>
</head>
<body>
<canvas id="renderCanvas" touch-action="none"></canvas> <!-- touch-action="none" for best results from PEP -->
<div id="container"> </div>
<div id="info" style="position:fixed; top:5px; width:100%; text-align:center; font-family:monospace; font-size:medium; color:rgb(255,255,255);">
Babylon.js PathTracing Renderer - Cornell Box
</div>
<div id="cameraInfo" style="position:fixed; left:1%; bottom:2%; font-family:monospace; font-size:large; color:rgb(200,200,200);">
</div>
<!-- use this uncompressed version of the library while debugging -->
<!-- <script src="js/babylon.max.js"></script> -->
<!-- use this minified version of the library for deployment -->
<script src="js/babylon.js"></script>
<!-- this file is for displaying the framerate(FPS) in the top-left corner of the webpage -->
<script src="js/stats.min.js"> </script>
<!-- this file is for including an interactive GUI menu system in the top-right corner of the webpage -->
<script src='js/dat.gui.min.js'></script>
<!-- this is the required file containing our GLSL path tracing library constants, variables, and utility functions, as well as the common GLSL fragment shaders-->
<script src="js/PathTracingCommon.js"> </script>
<!-- this is the required file containing the demo/scene-specific GLSL fragment shader for each individual scene -->
<script src="js/BabylonPathTracing_FragmentShader.js"> </script>
<!-- this is the required demo/scene-specific .js file for setting up each pathtraced scene -->
<script src="js/Babylon_Path_Tracing.js"> </script>
</body>
</html>