-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
40 lines (37 loc) · 1.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<title>WebGPU glTF</title>
</head>
<body>
<div class="container mt-4">
<div class="row">
<div class="col-12 text-center">
<h4>WebGPU glTF</h4>
<canvas id="webgpu-canvas" class="img-fluid" width="1280" height="720"></canvas>
<div class="col-12 alert alert-danger" id="no-webgpu" style="display:none;">
<h4>Error: Your browser does not support WebGPU</h4>
</div>
</div>
<div class="col-12 text-center">
Demo of a glTF renderer using WebGPU. Supports loading binary glTF files only (.glb).
Get the code on <a href="https:/Twinklebear/webgpu-gltf">Github!</a>
<p id="fps"></p>
</div>
<div id="loading-text" class="col-12 mx-auto text-center">
Uploading glb file, please wait.
</div>
<div class="col-12 col-lg-8 mx-auto">
<input type="file" class="custom-file-input" id="uploadGLB" accept=".glb">
<label class="custom-file-label" for="uploadGLB">Upload GLB File</label>
</div>
</div>
</div>
</body>
</html>