-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3dTest.html
50 lines (46 loc) · 1.55 KB
/
3dTest.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
<html>
<head>
<meta charset="utf-8">
<script src="./webgl-obj-loader.js"></script>
<script src="utility.js"></script>
<!--<script src="./ezmnpk.js" defer></script>-->
<script src="./src/scripts/synthmon-core.js"></script>
<script src="./src/scripts/synthmon-components.js"></script>
<script src="./src/scripts/synthmon-components-world.js"></script>
<script src="./src/scripts/synthmon-components-battle.js"></script>
<script src="./src/scripts/synthmon-systems.js"></script>
<script src="./src/scripts/synthmon-system-battle.js"></script>
<script src="./src/scripts/synthmon-assemblages.js"></script>
<script src="./src/scripts/synthmon-controllers.js"></script>
<script src="./src/scripts/synthmon-objects.js"></script>
<script src="./src/scripts/synthmon-main-3d.js"></script>
<script name="lambertFragShader" id="lambert-fs" type="x-shader/x-fragment">
void main(void) {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}
</script>
<script name="lambertVertShader" id="lambert-vs" type="x-shader/x-vertex">
precision highp float;
attribute vec3 a_vertPos;
attribute vec3 a_vertNorm;
uniform mat4 u_mMatrix;
uniform mat4 u_wMatrix;
void main(void) {
gl_Position = u_wMatrix * u_mMatrix * vec4(a_vertPos, 1.0);
}
</script>
</head>
<body onload="init()">
<canvas id="game"></canvas>
<div id="system0"></div>
<div id="system1"></div>
<div id="system2"></div>
<div id="system3"></div>
<div id="system4"></div>
</body>
</html>
<style>
div {
font-family: "Courier New", Courier, monospace;
}
</style>