-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (97 loc) · 3.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebGL Mipmap Explainer</title>
<!-- Primary Meta Tags -->
<title>
Sharper Mipmapping using Shader Based Supersampling with WebGL
</title>
<meta name="title" content="Sharper Mipmapping using Shader Based Supersampling with WebGL" />
<meta name="description" content="Demo exploring mipmapping, anisotropy filtering and shader supersampling" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://gnikoloff.github.io/webgl-mipmaps-explainer/" />
<meta property="og:title" content="Sharper Mipmapping using Shader Based Supersampling with WebGL" />
<meta property="og:description" content="Demo exploring mipmapping, anisotropy filtering and shader supersampling" />
<meta property="og:image" content="https://gnikoloff.github.io/webgl-mipmaps-explainer/preview.png" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://gnikoloff.github.io/webgl-mipmaps-explainer/" />
<meta property="twitter:title" content="Sharper Mipmapping using Shader Based Supersampling with WebGL" />
<meta property="twitter:description"
content="Demo exploring mipmapping, anisotropy filtering and shader supersampling" />
<meta property="twitter:image" content="https://gnikoloff.github.io/webgl-mipmaps-explainer/preview.png" />
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
}
#app {
font-family: ui-monospace, Menlo, Monaco, 'Cascadia Mono',
'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace',
'Source Code Pro', 'Fira Mono', 'Droid Sans Mono', 'Courier New',
monospace;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#info {
box-sizing: border-box;
padding: 12px;
position: fixed;
bottom: 0;
left: 0;
z-index: 1;
color: white;
}
#info h1 {
margin: 0;
font-size: 21px;
line-height: 1.2;
}
#info p {
margin-top: 12px;
margin-bottom: 0;
font-size: 14px;
}
#info a {
color: inherit;
}
</style>
</head>
<body>
<div id="app">
<canvas id="c"></canvas>
<section id="info">
<h1>WebGL mipmap explainer</h1>
<p>
Technique and visuals taken from
<a href="https://bgolus.medium.com/sharper-mipmapping-using-shader-based-supersampling-ed7aadb47bec">this
article</a>
by
<a href="https://twitter.com/bgolus?s=20&t=1wrNx_aKqZ9uadeDdpOCxQ">Ben Golus</a>. Check out the source code
here:
<a href="https://github.com/gnikoloff/webgl-mipmaps-explainer" target="_blank">Github repo</a>
</p>
<p>
Implemented by
<a href="https://georgi-nikolov.com/">Georgi Nikolov</a>.
</p>
</section>
</div>
<script type="module" src="/src/main.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-221505241-1"></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'UA-221505241-1')
</script>
</body>
</html>