-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (41 loc) · 972 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>WebGL</title>
<style>
* {
margin: 0;
padding: 0;
}
p {
background-color: white;
position: absolute;
height: auto;
width: auto;
transform-origin: 10%;
}
body, html {
height:100%;
}
#glcanvas {
position:absolute;
height:100%; width:100%;
background: red;
}
</style>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix-min.js"
integrity="sha512-zhHQR0/H5SEBL3Wn6yYSaTTZej12z0hVZKOv3TwCUXT1z5qeqGcXJLLrbERYRScEDDpYIJhPC1fk31gqR783iQ=="
crossorigin="anonymous"
defer
></script>
<script src="webgl.js" type="module"></script>
</head>
<p>
Test text abdgoahnpga[pvjshdgpajdgpiashfdkadfa]
</p>
<body>
<canvas id="glcanvas" width="640" height="480"></canvas>
</body>
</html>