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
|
<!DOCTYPE html>
<html>
<head>
<title>s1nical - WebGL Path Tracing</title>
<!-- Site metadata -->
<meta name="description" content="WebGL Path Tracing">
<meta property="og:description" content="WebGL Path Tracing">
<meta property="og:title" content="s1nical - WebGL Path Tracing">
<meta property="twitter:card" content="summary">
<meta property="twitter:site" content="@9inny">
<meta property="og:image" content="">
<meta property="og:url" content="https://kyzer.co/demos/path-tracer">
<link rel="apple-touch-icon" sizes="128x128" href="/favicon.jpg">
<link rel="icon" type="image/jpg" href="/favicon.jpg" sizes="128x128">
<link rel="canonical" href="https://kyzer.co/demos/path-tracer">
<link rel="author" href="humans.txt" />
<!-- Schema.org Stuff -->
<script type="application/ld+json">
{
"name": "s1nical",
"alternateName": "s1n",
"description": "WebGL Path Tracing",
"headline": "WebGL Path Tracing",
"url": "https://kyzer.co/demos/path-tracers",
"image": "",
"sameAs": [
"https://twitter.com/9inny",
"https://github.com/8cy",
"https://www.reddit.com/user/s1nical/"
],
"publisher": {
"@type": "Organization",
"logo": {
"@type": "ImageObject",
"url": ""
}
},
"@type": "WebSite",
"@context": "http://schema.org"
}
</script>
<link rel="stylesheet" href="/demos/path-tracer/main.css">
<script src="/demos/path-tracer/main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/97/three.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<div id="main">
<canvas id="canvas" width="512" height="512"></canvas>
<div id="error"><noscript>Please enable JavaScript</noscript></div>
<p>
<b>Material:</b>
<select id="material">
<option value="0" selected>Diffuse</option>
<option value="1">Mirror</option>
<option value="2">Glossy</option>
</select>
<span id="glossiness-factor">
<br>with glossiness factor: 0 < <input id="glossiness" value="0.6"> < 1
</span>
<br>
<b>Environment:</b>
<select id="environment">
<option value="0" selected>Cornell Box - Yellow and Blue</option>
<option value="1">Cornell Box - Red and Green</option>
</select>
</p>
</div>
</body>
</html>
|