forked from google/swissgl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (44 loc) · 1.79 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SwissGL demos</title>
<link rel="stylesheet" href="demo/style.css" />
</head>
<body>
<details id="panel" open>
<summary><a href="https://github.com/pluvial/swissgl">SwissGL</a> demos</summary>
<div id="cards"></div>
</details>
<div id="demo">
<canvas id="c" width="640" height="360"></canvas>
<div id="buttons">
<button title="VR" onclick="toggleVR()" id="vrButton">VR</button>
<button title="AR" onclick="toggleAR()" id="arButton">AR</button>
<button title="settings" onclick="toggleGui()" id="settingButton" style="font-size: 180%">
⛯
</button>
<button title="source code"><a id="sourceLink" href="" target="_blank"><></a></button>
<button title="fullscreen" onclick="fullscreen()">⛶</button>
</div>
</div>
<button title="about" id="aboutButton" onclick="showAbout()">?</button>
<div id="about">
<p>
<a href="https://github.com/pluvial/swissgl"><b>SwissGL</b></a>
is a prototype of a minimal yet expressive GPU library built on WebGL2. A single
<nobr>"glsl()"</nobr> function runs GLSL code snippets on the GPU and manages the resulting
texture buffers.
</p>
<p>
This page contains a few demos built using the library. Click the
<nobr>"<>"</nobr> button to see the source of the current example.
</p>
<button style="font-size: 20px; margin: auto" onclick="hideAbout()">hide</button>
</div>
<div id="gui"></div>
<script type="module" src="/demo/main.ts"></script>
</body>
</html>