WebGL 2 shader

This commit is contained in:
Christian Lawson-Perfect 2025-05-16 06:32:01 +00:00
commit 61faec2e92
4 changed files with 194 additions and 0 deletions

23
index.html Normal file
View file

@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>A thing made by CLP</title>
<script type="module" src="script.js"></script>
<style>
body {
margin: 0;
}
canvas {
width: 100svw;
height: 100svh;
}
</style>
</head>
<body>
<canvas id="glCanvas" width="600" height="450"></canvas>
<p><a href="https://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf">WebGL reference card</a></p>
<pre id="errors"></pre>
</body>
</html>