forked from KhronosGroup/glTF-Sample-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (46 loc) · 1.72 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" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>WebGL PBR</title>
<link rel="stylesheet" href="style.css">
<script src="libs/dat.gui.min.js"></script>
<script src="libs/gl-matrix-min.js"></script>
<script src="libs/jquery-3.1.1.js"></script>
<script src="mesh.js"></script>
<script src="scene.js"></script>
<script src="main.js"></script>
</head>
<body onload="main()">
<div id="error"></div>
<canvas id="canvas" width="600" height="600">
Please use a browser that supports "canvas"
</canvas>
<canvas id="canvas2d" width="600" height="600">
</canvas>
<a class="source" href="https://github.com/KhronosGroup/glTF-WebGL-PBR">source on GitHub</a>
<div id="pbrMath">
<div class="pbrMathSub" id="mathAll"><i>f</i>(<i>l</i>,<i>v</i>,<i>h</i>) = </div>
<div class="pbrMathSub" id="mathDiff">Diff(l,n)</div> +
<div class="pbrMathSub" id="mathSpec">
<div class="reset" id="mathF">F(l,h)</div>
<div class="reset" id="mathG">G(l,v,h)</div>
<div class="reset" id="mathD">D(h)</div>
<hr class="line">
<div class="reset">4(n*l)(n*v)</div>
</div>
</div>
<div id="inputs">
<div class="note">Click or hover to isolate:</div>
<div class="pbrMathSub" id="baseColor">base color</div><br>
<div class="pbrMathSub" id="metallic">metallic</div><br>
<div class="pbrMathSub" id="roughness">roughness</div>
</div>
<div class="pixelPicker">
<span id="pixelPickerColor"></span>
<span id="pixelPickerText"></span>
</div>
<div id="loadSpinner"></div>
</body>
</html>