-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
112 lines (102 loc) · 5.09 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html>
<header>
<title>BSDF Visualizer</title>
<link rel="stylesheet" href="./Styles/flexbox.css">
<link rel="stylesheet" href="./Styles/fonts.css">
<link rel="stylesheet" href="./Styles/colors.css">
<link rel="stylesheet" href="./Styles/rangesliders.css">
<link rel="stylesheet" href="./Styles/knobs.css">
<link rel="stylesheet" href="./Styles/switch.css">
<link rel="stylesheet" href="./Styles/button.css">
<link rel="stylesheet" href="./Styles/select.css">
<link rel="stylesheet" href="./Styles/dropdown.css">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta charset="utf-8"/>
</header>
<!-- svg styling for envelope sliders -->
<svg class="defs">
<defs>
<radialGradient id="grad-dial-soft-shadow" cx="0.5" cy="0.5" r="0.5">
<stop offset="85%" stop-color="#242a2e" stop-opacity="0.4"></stop>
<stop offset="100%" stop-color="#242a2e" stop-opacity="0"></stop>
</radialGradient>
<linearGradient id="grad-dial-base" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#52595f"></stop>
<stop offset="100%" stop-color="#2b3238"></stop>
</linearGradient>
<linearGradient id="grad-dial-highlight" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#70777d" stop-opacity="1"></stop>
<stop offset="40%" stop-color="#70777d" stop-opacity="0"></stop>
<stop offset="55%" stop-color="#70777d" stop-opacity="0"></stop>
<stop offset="100%" stop-color="#70777d" stop-opacity="0.3"></stop>
</linearGradient>
<filter id="glow">
<feGaussianBlur in="SourceGraphic" result="blur" stdDeviation="2"></feGaussianBlur>
<feComposite in="blur" in2="SourceGraphic" operator="over"></feComposite>
</filter>
</defs>
</svg>
<body id="main-container">
<div id="menu-column">
<div id="brdf-instructions">
<div class="dropdown">
<button class="dropbtn">Help</button>
<div class="dropdown-content">
<p>Left Click - Place BRDF on Model</p>
<p>Right Click / Alt + Click - Rotate</p>
<p>Middle Click / Shift + Click - Zoom in or out</p>
<p>Click the middle link to connect or disconnect views</p>
<a href="./brdfs/lambert.yaml"><p>Download example BRDF Script</p></a>
</div>
</div>
</div>
<div id="brdf-presets">
<button type="button" class="button" id="btn1">Ashikhmin Shirley</button>
<button type="button" class="button" id="btn2">Phong</button>
<button type="button" class="button" id="btn3">Lambert</button>
<button type="button" class="button" id="btn4">Oren Nayar</button>
<button type="button" class="button" id="btn5">Ross-Li</button>
<button type="button" class="button" id="btn6">Blinn</button>
<button type="button" class="button" id="btn7">Disney-Aniso</button>
<button type="button" class="button" id="btn8">Disney-Iso</button>
<button type="button" class="button" id="btn9">Disney-Diffuse</button>
<button type="button" class="button" id="btn10">Disney-ClearCoat</button>
<button type="button" class="button" id="btn11">Disney-Sheen</button>
<button type="button" class="button" id="btn12">Disney-All-Together</button>
</div>
</div>
<div id="model-column">
<div id="model-header">
<!-- <div id="heatmap-toggle">Heatmap</div> -->
<!-- <div id="ibl-toggle">Image Based Lighting</div> -->
<!-- <input class="niceSlider" id="slider_camRot" type='range'/> -->
</div>
<canvas id="model-canvas">Point light canvas</canvas>
<div id="model-menu">
Point Light Menu
</div>
</div>
<div> <img id="link_button" src="img/link_small.png" width = 100% height = auto /> </div>
<div id="brdf-column">
<div id="brdf-header">BRDF Header</div>
<canvas id="brdf-canvas">BRDF canvas</canvas>
<div id="brdf-menu">BRDF menu</div>
</div>
</body>
<script src="Scripts/js-yaml.js"></script>
<script src="Scripts/gl-matrix.js"></script>
<script src='Scripts/webgl-obj-loader.js'></script>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="Scripts/jquery-3.3.1.js"></script>
<script type="text/javascript" src="Scripts/jquery.knob.js"></script>
<script type="module" src="Scripts/main.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-111687166-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-111687166-1');
</script>
</html>