-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (32 loc) · 1003 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
42
43
44
45
46
47
48
<html>
<head>
<title> RPG Reborn </title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link href="style.css" rel="stylesheet">
<script src="src/main.js" type="module">
</script>
<script type="vertext_shader" id="vs_01">
attribute vec2 a_position;
attribute vec2 a_texCoord;
uniform mat3 u_world;
uniform mat3 u_scale;
uniform mat3 u_transition;
varying vec2 v_texCoord;
void main(){
gl_Position = vec4(u_world*u_scale*vec3(a_position,1),1) ;
v_texCoord = a_texCoord;
}
</script>
<script type="fragment_shader" id="fs_01">
precision mediump float;
uniform sampler2D u_image;
varying vec2 v_texCoord;
uniform vec4 u_color;
void main(){
gl_FragColor = u_color*texture2D(u_image,v_texCoord);
}
</script>
</head>
<body id="body">
</body>
</html>