-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (38 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
39
40
41
42
43
44
<!DOCTYPE html>
<head>
<link href='https://fonts.googleapis.com/css?family=Astloch' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Press Start 2P' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Aclonica' rel='stylesheet'>
<title>Graphical Deity Interface</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script type="text/javascript" src="gl-matrix.js"></script>
<meta http-equiv="content-type" content="text/html" charset="UTF-8">
<script id="shader-fs" type="x-shader/x-fragment">
precision mediump float;
varying vec4 vColor;
void main(void) {
gl_FragColor = vColor;
}
</script>
<script id="shader-vs" type="x-shader/x-vertex">
attribute vec3 aVertexPosition;
attribute vec4 aVertexColor;
uniform mat4 uMVMatrix;
uniform mat4 uPMatrix;
varying vec4 vColor;
void main(void) {
gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
vColor = aVertexColor;
}
</script>
</head>
<body>
<div style = position:relative id = canvasCan>
<canvas id="gameCanvas">This human's web-browser is incapable of processing the Graphical Deity Interface. I suggest that you urge this human to get a better web browser, or find a new human.</canvas>
<div id = 'errorLog'></div>
</div>
<script src = 'gameScript.js'></script>
<script src='script.js'></script>
</body>
</html>