-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
103 lines (86 loc) · 3.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>WebGPU Sponza Demo</title>
<meta name="title" content="WebGPU Sponza Demo" />
<meta name="description" content="WebGPU Tech Demo Showcasing Various Rendering Techniques" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://gnikoloff.github.io/webgpu-sponza-demo/" />
<meta property="og:title" content="WebGPU Sponza Demo" />
<meta property="og:description" content="WebGPU Tech Demo Showcasing Various Rendering Techniques" />
<meta property="og:image" content="https://gnikoloff.github.io/webgpu-sponza-demo/web-preview.png" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://gnikoloff.github.io/webgpu-sponza-demo/" />
<meta property="twitter:title" content="WebGPU Sponza Demo" />
<meta property="twitter:description" content="WebGPU Tech Demo Showcasing Various Rendering Techniques" />
<meta property="twitter:image" content="https://gnikoloff.github.io/webgpu-sponza-demo/web-preview.png" />
<link href="src/index.css" rel="stylesheet" />
</head>
<body>
<div class="logo fadable faded" id="logo">
<h1>WebGPU Tech Demo</h1>
<p>
More info and source code on <a href="https://github.com/gnikoloff/webgpu-sponza-demo" target="_blank">GitHub</a>
<br />
Created by <a href="https://georgi-nikolov.com" target="_blank">Georgi Nikolov</a>
</p>
<hr class="logo-border" />
<p class="keyboard-mouse-instructions">
Use arrow keys to navigate the scene.
<br />
Look around by dragging the mouse.
</p>
</div>
<div id="no-webgpu-wrapper">
<h1>Uh-oh, WebGPU not supported :(</h1>
<div id="no-webgpu-preview"></div>
<p>This demo requires the modern WebGPU graphics API to run. Seems like your browser does not support it.</p>
<p>Here are the steps to run it in your browser of choice:</p>
<ul>
<li>
<h3>Chromium (Chrome, Edge, Opera, etc.)</h3>
<ul>
<li>
WebGPU has begun shipping to Mac / Windows / ChromeOS since Chrome 113, Edge 113 and Opera 99. Please update
your browser to a latest version.
</li>
</ul>
</li>
<li>
<h3>Firefox</h3>
<ul>
<li>WebGPU WebGPU is enabled by default in <a
href="https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly" target="_blank">Nightly Firefox</a>
builds.</li>
</ul>
</li>
<li>
<h3>Safari</h3>
<ul>
<li>WebGPU is enabled by default in <a href="https://developer.apple.com/safari/technology-preview/"
target="_blank">Safari Technology Preview</a>.</li>
<li>In macOS Sequoia betas it is testable via the "Feature Flags" in Safari Settings. See release notes for
<a href="https://www.webkit.org/blog/14885/release-notes-for-safari-technology-preview-185/"
target="_blank">Safari Technology Preview 185</a>.
</li>
<li>In the iOS 18 betas and visionOS 2 betas, it is available via Settings -> Apps -> Safari -> Advanced ->
Feature Flags -> WebGPU</li>
</ul>
</li>
</ul>
</div>
<canvas id="c"></canvas>
<div class="fadable" id="loader"></div>
<script type="module" src="src/index.ts"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YN340LVPHE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-YN340LVPHE');
</script>
</body>
</html>