-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (42 loc) · 1.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WegGL Example</title>
<script type="text/javascript" src="gl-matrix-min.js"></script>
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript" src="Shape.js"></script>
<script type="text/javascript" src="helpers.js"></script>
<script type="text/javascript" src="key-service.js"></script>
<script type="text/javascript" src="shape-factory.js"></script>
<script type="text/javascript" src="GenObject.js"></script>
<script type="text/javascript" src="GridObject.js"></script>
<script type="text/javascript" src="ShaderProgram.js"></script>
<script type="text/javascript" src="globals.js"></script>
<script type="text/javascript" src="LightObject.js"></script>
<script type="text/javascript" src="Game.js"></script>
<script type="text/javascript" src="TetraCube.js"></script>
<script id="v-shader-nolight" type="x-shader/x-vertex">
precision mediump float;
attribute vec3 vertexPosition;
attribute vec3 vertexColor;
uniform mat4 modelViewMatrix;
uniform mat4 projectionMatrix;
varying vec3 fragmentColor;
void main() {
gl_Position = projectionMatrix * modelViewMatrix * vec4(vertexPosition, 1.0);
fragmentColor = vertexColor;
}
</script>
<script id="f-shader" type="x-shader/x-fragment">
precision mediump float;
varying vec3 fragmentColor;
void main() {
gl_FragColor = vec4(fragmentColor, 1.0);
}
</script>
</head>
<body>
<canvas id="canvas" width="1200" height="1200"></canvas>
</body>
</html>