-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.html
33 lines (30 loc) · 1.12 KB
/
shell.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="lib/gl-matrix.js"></script>
<!-- <script id="shader-fs" type="x-shader/x-fragment" src="shaders/default_vs.essl"></script> -->
<!-- <script id="shader-fs" type="x-shader/x-fragment" src="shaders/default_fs.essl"></script> -->
<script id="shader-fs" type="x-shader/x-fragment">
precision mediump float;
void main(void) {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}
</script>
<script id="shader-vs" type="x-shader/x-vertex">
attribute vec3 aVertexPosition;
uniform mat4 uMVMatrix;
uniform mat4 uPMatrix;
void main(void) {
gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
}
</script>
<script src="lib/bundle.js"></script>
<script src="shell.js"></script>
<link rel="stylesheet" type="text/css" href="shell.css">
</head>
<body onload="showApplicationOnCanvas();">
<canvas id="application-host" style="position: absolute;">
</canvas>
</body>
</html>