Repository navigation
Expand file tree
/
Copy pathlogos.html
More file actions
118 lines (110 loc) · 3.62 KB
/
Copy pathlogos.html
File metadata and controls
118 lines (110 loc) · 3.62 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html>
<head>
<title>Flying Logos</title>
<link rel="stylesheet" href="../jquery-ui-1.8.2.custom/css/ui-lightness/jquery-ui-1.8.2.custom.css" />
<link rel="stylesheet" href="logos.css" />
<script src="../jquery-ui-1.8.2.custom/js/jquery-1.4.2.min.js"></script>
<script src="../jquery-ui-1.8.2.custom/js/jquery-ui-1.8.2.custom.min.js"></script>
<script src="../tdl/base.js"></script>
<script>
tdl.require('tdl.buffers');
tdl.require('tdl.fast');
tdl.require('tdl.fps');
tdl.require('tdl.log');
tdl.require('tdl.math');
tdl.require('tdl.models');
tdl.require('tdl.primitives');
tdl.require('tdl.programs');
tdl.require('tdl.textures');
tdl.require('tdl.webgl');
</script>
<script src="logos.js"></script>
</head>
<body>
<div id="container">
<div id="header" class="ui-widget">
<h1 class="ui-widget-header">Flying Logos</h1>
</div>
<div id="content">
<div id="side-bar">
<div class="ui-widget fl-box">
<div class="ui-widget-header fl-box-header">FPS</div>
<div id="fps" class="ui-widget-content fl-box-content"></div>
</div>
<div class="ui-widget fl-box">
<div class="ui-widget-header fl-box-header">Settings</div>
<div class="ui-widget-content fl-box-content">
<div id="settings">
<h4><a href="#">Count</a></h4>
<div>
<div id="count"></div>
<div id="count-slider"></div>
</div>
<h4><a href="#">Theme</a></h4>
<div id="theme">
<input type="radio" name="theme" value="red" />Red<br />
<input type="radio" name="theme" value="green" />Green<br />
<input type="radio" name="theme" value="blue" />Blue<br />
<input type="radio" name="theme" value="google" checked />Google<br />
</div>
<h4><a href="#">Finish</a></h4>
<div id="finish">
<input type="radio" name="finish" value="shiny" checked />Shiny<br />
<input type="radio" name="finish" value="brushed" />Brushed<br />
<input type="radio" name="finish" value="toon" />Toon<br />
</div>
</div>
</div>
</div>
</div>
<div id="main-content" class="ui-widget">
<canvas id="canvas" class="ui-widget-content"></canvas>
</div>
</div>
<div id="footer" class="ui-widget">
<div class="ui-widget-content">Footer</div>
</div>
</div>
</body>
<!-- Ground Shader -->
<script id="groundVShader" type="text/something-not-javascript">
attribute vec4 position;
uniform mat4 worldViewProjection;
void main() {
gl_Position = worldViewProjection * position;
}
</script>
<script id="groundFShader" type="text/something-not-javascript">
precision mediump float;
void main() {
gl_FragColor = vec4(1, 1, 0, 1);
}
</script>
<!-- Skybox Shader -->
<script id="skyboxVShader" type="text/something-not-javascript">
attribute vec4 position;
varying vec4 v_position;
void main() {
v_position = position;
gl_Position = position;
}
</script>
<script id="skyboxFShader" type="text/something-not-javascript">
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
uniform samplerCube skybox;
uniform mat4 viewProjectionInverse;
varying vec4 v_position;
void main() {
vec4 t = (viewProjectionInverse * v_position);
vec4 color = textureCube(
skybox,
normalize(t.xyz / t.w));
gl_FragColor = color;
}
</script>
</html>