forked from gfxfundamentals/webgl-fundamentals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
252 lines (232 loc) · 11.1 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html>
<!-- this file is auto-generated from webgl/lessons/index.md. Do not edited directly -->
<!--
Copyright 2012, Gregg Tavares.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Gregg Tavares. nor the names of his
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, user-scalable=yes">
<meta property="og:title" content="WebGL Fundamentals" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://webglfundamentals.org/webgl/lessons/resources/webglfundamentals.jpg" />
<meta property="og:description" content="Learn WebGL from the ground up. No magic" />
<meta property="og:url" content="http://webglfundamentals.org">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@greggman">
<meta name="twitter:creator" content="@greggman">
<meta name="twitter:domain" content="webglfundamentals.org">
<meta name="twitter:title" content="webglfundamentals.org">
<meta name="twitter:url" content="http://webglfundamentals.org">
<meta name="twitter:description" content="Learn WebGL from the ground up. No magic" />
<meta name="twitter:image:src" content="http://webglfundamentals.org/webgl/lessons/resources/webglfundamentals.jpg">
<title>WebGL Fundamentals</title>
<link rel="alternate" type="application/atom+xml" title="WebGL Fundamentals" href="http://webglfundamentals.org/atom.xml" />
<link href="/webgl/lessons/resources/webglfundamentals-icon.png" rel="shortcut icon" type="image/png">
<link rel="stylesheet" href="/webgl/lessons/resources/base.css" type="text/css" />
<link rel="stylesheet" href="/webgl/lessons/resources/lesson.css" type="text/css" />
<link rel="stylesheet" href="/webgl/lessons/resources/index.css" type="text/css" />
</head>
<body>
<div id="canvas">
</div>
<div class="container">
<div class="row">
<div class="not-jumbotron">
<h1>WebGL Fundamentals <span class="rss"><a href="http://webglfundamentals.org/atom.xml"><img src="/webgl/lessons/resources/rss-icon.svg" /></a></span></h1>
<select id="language">
</select>
<p>WebGL from the ground up. No magic.</p>
<p>These are a set of articles that teach WebGL from basic principles.
They are NOT old rehashed out of date OpenGL articles like many others on the net.
They are entirely new, discarding the old out of date ideas and bringing you
to a full understanding of what WebGL really is and how it really works.</p>
<p><ul>
<li>Fundamentals</li>
<ul>
<li><a href="/webgl/lessons/webgl-fundamentals.html">WebGL Fundamentals</a></li>
<li><a href="/webgl/lessons/webgl-how-it-works.html">WebGL How It Works</a></li>
<li><a href="/webgl/lessons/webgl-shaders-and-glsl.html">WebGL Shaders and GLSL</a></li>
</ul>
<li>Image Processing</li>
<ul>
<li><a href="/webgl/lessons/webgl-image-processing.html">WebGL Image Processing</a></li>
<li><a href="/webgl/lessons/webgl-image-processing-continued.html">WebGL Image Processing Continued</a></li>
</ul>
<li>2D translation, rotation, scale, matrix math</li>
<ul>
<li><a href="/webgl/lessons/webgl-2d-translation.html">WebGL 2D Translation</a></li>
<li><a href="/webgl/lessons/webgl-2d-rotation.html">WebGL 2D Rotation</a></li>
<li><a href="/webgl/lessons/webgl-2d-scale.html">WebGL 2D Scale</a></li>
<li><a href="/webgl/lessons/webgl-2d-matrices.html">WebGL 2D Matrices</a></li>
</ul>
<li>3D</li>
<ul>
<li><a href="/webgl/lessons/webgl-3d-orthographic.html">WebGL - Orthographic 3D</a></li>
<li><a href="/webgl/lessons/webgl-3d-perspective.html">WebGL 3D Perspective</a></li>
<li><a href="/webgl/lessons/webgl-3d-camera.html">WebGL 3D - Cameras</a></li>
</ul>
<li>Structure and Organization</li>
<ul>
<li><a href="/webgl/lessons/webgl-less-code-more-fun.html">WebGL - Less Code, More Fun</a></li>
<li><a href="/webgl/lessons/webgl-drawing-multiple-things.html">WebGL - Drawing Multiple Things</a></li>
<li><a href="/webgl/lessons/webgl-scene-graph.html">WebGL - Scene Graphs</a></li>
</ul>
<li>Text</li>
<ul>
<li><a href="/webgl/lessons/webgl-text-html.html">WebGL Text - HTML</a>
<li><a href="/webgl/lessons/webgl-text-canvas2d.html">WebGL Text - Canvas 2D</a>
<li><a href="/webgl/lessons/webgl-text-texture.html">WebGL Text - Using a Texture</a>
<li><a href="/webgl/lessons/webgl-text-glyphs.html">WebGL Text - Using a Glyph Texture</a>
</ul>
<li>Misc</li>
<ul>
<li><a href="/webgl/lessons/webgl-boilerplate.html">WebGL Boilerplate</a></li>
<li><a href="/webgl/lessons/webgl-resizing-the-canvas.html">WebGL Resizing the Canvas</a></li>
<li><a href="/webgl/lessons/webgl-animation.html">WebGL - Animation</a></li>
<li><a href="/webgl/lessons/webgl-3d-textures.html">WebGL 3D - Textures</a></li>
<li><a href="/webgl/lessons/webgl-2-textures.html">WebGL Using 2 or More Textures</a></li>
<li><a href="/webgl/lessons/webgl-and-alpha.html">WebGL and Alpha</a></li>
<li><a href="/webgl/lessons/webgl-2d-vs-3d-library.html">WebGL - 2D vs 3D libraries</a></li>
<li><a href="/webgl/lessons/webgl-anti-patterns.html">WebGL - Anti-Patterns</a></li>
</ul>
</ul>
<ul>
<li><a href="/docs/">Helper API Docs</a></li>
<li><a href="http://twgljs.org">TWGL, A tiny WebGL helper library</a></li>
<li><a href="https://github.com/greggman/webgl-fundamentals">github</a></li>
</ul>
</p>
<!--
<ul><li><a href="webgl/lessons/webgl-2-textures.html">WebGL Using 2 or More Textures</a></li>
<li><a href="webgl/lessons/webgl-2d-matrices.html">WebGL 2D Matrices</a></li>
<li><a href="webgl/lessons/webgl-2d-rotation.html">WebGL 2D Rotation</a></li>
<li><a href="webgl/lessons/webgl-2d-scale.html">WebGL 2D Scale</a></li>
<li><a href="webgl/lessons/webgl-2d-translation.html">WebGL 2D Translation</a></li>
<li><a href="webgl/lessons/webgl-2d-vs-3d-library.html">WebGL - Rasterization vs 3D libraries</a></li>
<li><a href="webgl/lessons/webgl-3d-camera.html">WebGL 3D - Cameras</a></li>
<li><a href="webgl/lessons/webgl-3d-orthographic.html">WebGL - Orthographic 3D</a></li>
<li><a href="webgl/lessons/webgl-3d-perspective.html">WebGL 3D Perspective</a></li>
<li><a href="webgl/lessons/webgl-3d-textures.html">WebGL 3D - Textures</a></li>
<li><a href="webgl/lessons/webgl-and-alpha.html">WebGL and Alpha</a></li>
<li><a href="webgl/lessons/webgl-animation.html">WebGL - Animation</a></li>
<li><a href="webgl/lessons/webgl-anti-patterns.html">WebGL Anti-Patterns</a></li>
<li><a href="webgl/lessons/webgl-boilerplate.html">WebGL Boilerplate</a></li>
<li><a href="webgl/lessons/webgl-drawing-multiple-things.html">WebGL - Drawing Multiple Things</a></li>
<li><a href="webgl/lessons/webgl-fundamentals.html">WebGL Fundamentals</a></li>
<li><a href="webgl/lessons/webgl-how-it-works.html">WebGL How It Works</a></li>
<li><a href="webgl/lessons/webgl-image-processing-continued.html">WebGL Image Processing Continued</a></li>
<li><a href="webgl/lessons/webgl-image-processing.html">WebGL Image Processing</a></li>
<li><a href="webgl/lessons/webgl-less-code-more-fun.html">WebGL - Less Code, More Fun</a></li>
<li><a href="webgl/lessons/webgl-resizing-the-canvas.html">WebGL Resizing the Canvas.</a></li>
<li><a href="webgl/lessons/webgl-scene-graph.html">WebGL - Scene Graph</a></li>
<li><a href="webgl/lessons/webgl-shaders-and-glsl.html">WebGL Shaders and GLSL</a></li>
<li><a href="webgl/lessons/webgl-text-canvas2d.html">WebGL Text - Canvas 2D</a></li>
<li><a href="webgl/lessons/webgl-text-glyphs.html">WebGL Text - Using a Glyph Texture</a></li>
<li><a href="webgl/lessons/webgl-text-html.html">WebGL Text - HTML</a></li>
<li><a href="webgl/lessons/webgl-text-texture.html">WebGL Text - Textures</a></li></ul>
-->
</div>
</div>
</div>
<style>
#forkongithub a {
background: #000;
color: #fff;
text-decoration: none;
font-family: arial,sans-serif;
text-align: center;
font-weight: bold;
padding: 5px 40px;
font-size: 1rem;
line-height: 2rem;
position: relative;
transition: 0.5s;
display: block;
}
#forkongithub a:hover {
background: #c11;
color: #fff;
}
#forkongithub a::before,#forkongithub a::after {
content: "";
width: 100%;
display: block;
position: absolute;
top: 1px;
left: 0;
height: 1px;
background: #fff;
}
#forkongithub a::after {
bottom: 1px;
top: auto;
}
@media screen and (min-width: 400px){
#forkongithub{
position: fixed;
display: block;
top: 0;
right: 0;
width: 200px;
overflow: hidden;
height: 200px;
z-index: 9999;
}
#forkongithub a{
width: 200px;
position: absolute;
top: 40px;
right: -40px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
box-shadow: 4px 4px 10px rgba(0,0,0,0.8);
}
}
</style>
<div id="forkongithub"><a href="https://github.com/greggman/webgl-fundamentals">Fix or Fork me on GitHub</a></div>
</body>
<script src="/webgl/resources/webgl-utils.js"></script>
<script src="/webgl/resources/webgl-3d-math.js"></script>
<script src="/webgl/resources/primitives.js"></script>
<script src="/webgl/resources/same-code-02.js"></script>
<script src="/3rdparty/jquery-1.11.2.min.js"></script>
<script src="/langdb.js"></script>
<script src="/webgl/lessons/resources/languages.js"></script>
<script src="//cdn.webglstats.com/stat.js" defer="defer" async="async"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59804936-1', 'auto');
ga('send', 'pageview');
</script>
</html>