-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (71 loc) · 3.72 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
<!DOCTYPE html>
<html lang="en-us" dark-bs-theme="dark">
<head>
<title>WebGL Demos | Home</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel='stylesheet' href='styles.css'>
</head>
<body>
<div class="container">
<div class="banner">
<h1>WebGL demos</h1>
<hr>
</div>
<div id="main-content">
<p class="fst-italic">Note: WebGL must be enabled on your browser. For security, it should be
disabled as there are many exploits possible. That being said, if you want to see some
not-so-impressive WebGL demos live in the browser, feel free to enable it just for this
session. For added security, I have included GIFs in this page to show what they look like.
You could also sandbox your browser (e.g., open in a VM) or any other isolation techniques.
</p>
<div class="row">
<div class="col-sm-12 col-lg-6">
<div class="card card-dark">
<img class="card-img-top mx-auto mb-3" src="resources/animation-1.gif"/>
<h2 class="section-header"><a href="simple-anim/simple.html">Simple Animation 🔗</a></h2>
<p>
The simplest demo, this demonstrates the ability to manipulate
vertices and colors for WebGL, and set up the WebGL context
and rendering loop. Features 2D only.
</p>
</div>
</div>
<div class="col-sm-12 col-lg-6">
<div class="card card-dark">
<img class="card-img-top mx-auto mb-3" src="resources/animation-2.gif"/>
<h2 class="section-header"><a href="spinning-cubes/cube.html">Spinning Cubes 🔗</a></h2>
<p>
In this demo, I setup 3D geometry and send it once to the GPU.
A clickable canvas allows the user to create spinning cubes
on demand.
</p>
</div>
</div>
<div class="col-sm-12 col-lg-6">
<div class="card card-dark">
<img class="card-img-top mx-auto mb-3" src="resources/animation-3.gif"/>
<h2 class="section-header"><a href="lighting/lighting.html">Lighting 🔗</a></h2>
<p>
This demo shows lighting basics, as well as creating
surfaces of revolution in WebGL. An interactive canvas allows
the user to see the lighting in different ways.
</p>
</div>
</div>
<div class="col-sm-12 col-lg-6">
<div class="card card-dark">
<img class="card-img-top mx-auto mb-3" src="resources/animation-4.gif"/>
<h2 class="section-header"><a href="animation/animation.html">Animation and Textures 🔗</a></h2>
<p>
A figure is created using only cubes, and these cubes are then
animated using external matrices/vectors. Demonstrates texturing
and animation.
</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>