Skip to content

Commit f6ec7b1

Browse files
committed
http -> https
getElementById to querySelector
1 parent 592c4fe commit f6ec7b1

File tree

321 files changed

+1140
-1139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+1140
-1139
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
node_modules
44
out
55
package-lock.json
6+
webglfundamentals.check.json
67

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
WebGL Fundamentals
22
===================
33

4-
This is [a series of lessons or tutorials about WebGL](http://webglfundamentals.org/).
4+
This is [a series of lessons or tutorials about WebGL](https://webglfundamentals.org/).
55

66
Unlike most WebGL lessons these are not based off of OpenGL.
77
OpenGL is 20 years old. The lessons of OpenGL don't match well with WebGL.
@@ -60,10 +60,10 @@ Current fields are
6060
description: 'Learn WebGL from the ground up. No magic',
6161

6262
// Link to the language root.
63-
link: 'http://webglfundamentals.org/webgl/lessons/ja', // replace `ja` with country code
63+
link: 'https://webglfundamentals.org/webgl/lessons/ja', // replace `ja` with country code
6464

6565
// html that appears after the article and before the comments
66-
commentSectionHeader: '<div>Questions? <a href="http://stackoverflow.com/questions/tagged/webgl">Ask on stackoverflow</a>.</div>\n <div>Issue/Bug? <a href="http://github.com/gfxfundamentals/webgl-fundamentals/issues">Create an issue on github</a>.</div>',
66+
commentSectionHeader: '<div>Questions? <a href="https://stackoverflow.com/questions/tagged/webgl">Ask on stackoverflow</a>.</div>\n <div>Issue/Bug? <a href="https://github.com/gfxfundamentals/webgl-fundamentals/issues">Create an issue on github</a>.</div>',
6767

6868
// markdown that appears for untranslated articles
6969
missing: "Sorry this article has not been translated yet. [Translations Welcome](https://github.com/gfxfundamentals/webgl-fundamentals)! 😄\n\n[Here's the original English article for now]({{{origLink}}}).",
@@ -159,7 +159,7 @@ Which means you can localize the labels like this
159159

160160
For testing reference the sample directly in your browser. For example
161161

162-
[`http://localhost:8080/webgl/lessons/resources/directional-lighting.html?lightDir=光線方向&surface1=オブジェクト&surface2=表面方向&dot=dot(光線反対方向,表面方向)%20%3D%20&ui-rotation=角度`](http://webglfundamentals.org/webgl/lessons/resources/directional-lighting.html?lightDir=光線方向&surface1=オブジェクト&surface2=表面方向&dot=dot(光線反対方向,表面方向)%20%3D%20&ui-rotation=角度)
162+
[`http://localhost:8080/webgl/lessons/resources/directional-lighting.html?lightDir=光線方向&surface1=オブジェクト&surface2=表面方向&dot=dot(光線反対方向,表面方向)%20%3D%20&ui-rotation=角度`](https://webglfundamentals.org/webgl/lessons/resources/directional-lighting.html?lightDir=光線方向&surface1=オブジェクト&surface2=表面方向&dot=dot(光線反対方向,表面方向)%20%3D%20&ui-rotation=角度)
163163

164164
### To build
165165

contributors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ WebGLFundamentals.org Contributors
33

44
WebGLFundamentals is brought to you by:
55

6-
* Gregg (Greggman) Tavares [games.greggman.com](http://games.greggman.com)
6+
* Gregg (Greggman) Tavares [games.greggman.com](https://games.greggman.com)
77

88

docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ WebGLFundamentals API Docs
22
==========================
33

44
These docs are an attempt to help explain some of the helper functions
5-
used in the articles on [webglfundamentals.org](http://webglfundamentals.org).
5+
used in the articles on [webglfundamentals.org](https://webglfundamentals.org).
66

77
WebGL is a very low-level API and so using it is very verbose. To draw a simple
88
lighted cube can easily require 50-100 WebGL calls. Calls to create buffers
@@ -29,7 +29,7 @@ for common shapes like spheres, cubes, planes, cones, etc can be found here](/do
2929

3030
#JSDoc3 Plea
3131

32-
These docs are generated with [JSDoc3](http://usejsdoc.org/). I find them very confusing to look at
32+
These docs are generated with [JSDoc3](https://usejsdoc.org/). I find them very confusing to look at
3333
and in some places frustratingly verbose. If you have any experience with JSDoc3 and know how to
3434
make the docs more approachable and useful please [submit a pull request](https://github.com/gfxfundamentals/webgl-fundamentals)
3535
or [file an issue with details](https://github.com/gfxfundamentals/webgl-fundamentals/issues).

robots.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Sitemap: http://webglfundamentals.org/sitemap.xml
1+
Sitemap: https://webglfundamentals.org/sitemap.xml
22

33

webgl/frustum-diagram.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
<!--
8181
for most samples webgl-utils only provides shader compiling/linking and
8282
canvas resizing because why clutter the examples with code that's the same in every sample.
83-
See http://webglfundamentals.org/webgl/lessons/webgl-boilerplate.html
84-
and http://webglfundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html
83+
See https://webglfundamentals.org/webgl/lessons/webgl-boilerplate.html
84+
and https://webglfundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html
8585
for webgl-utils, m3, m4, and webgl-lessons-ui.
8686
-->
8787
<script src="resources/webgl-utils.js"></script>

webgl/glyph-texture-atlas-maker.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<!--
2020
for most samples webgl-utils only provides shader compiling/linking and
2121
canvas resizing because why clutter the examples with code that's the same in every sample.
22-
See http://webglfundamentals.org/webgl/lessons/webgl-boilerplate.html
23-
and http://webglfundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html
22+
See https://webglfundamentals.org/webgl/lessons/webgl-boilerplate.html
23+
and https://webglfundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html
2424
for webgl-utils, m3, m4, and webgl-lessons-ui.
2525
-->
2626
<script src="resources/webgl-utils.js"></script>

webgl/lessons/fr/langinfo.hanson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
defaultExampleCaption: "Cliquer ici pour ouvrir dans une nouvelle fenêtre",
55
title: 'WebGL - Les bases',
66
description: 'Les bases de WebGL. Sans magie.',
7-
link: 'http://webglfundamentals.org/webgl/lessons/fr',
8-
commentSectionHeader: '<div>Une question ? <a href="http://stackoverflow.com/questions/tagged/webgl">Demander sur stackoverflow</a>.</div>\n <div>Un problème ? <a href="http://github.com/vinci-mz/webgl-fundamentals/issues">Signaler sur github</a>.</div>',
7+
link: 'https://webglfundamentals.org/webgl/lessons/fr',
8+
commentSectionHeader: '<div>Une question ? <a href="https://stackoverflow.com/questions/tagged/webgl">Demander sur stackoverflow</a>.</div>\n <div>Un problème ? <a href="https://github.com/vinci-mz/webgl-fundamentals/issues">Signaler sur github</a>.</div>',
99
missing: "Sorry this article has not been translated yet. [Translations Welcome](https://github.com/gfxfundamentals/webgl-fundamentals)! 😄\n\n[Here's the original English article for now]({{{origLink}}}).",
1010
toc: 'Table des Matières',
1111
categoryMapping: {

webgl/lessons/fr/toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{{tocHtml}}}
22
<ul>
33
<li><a href="/docs/">Aide pour la doc de l'API</a></li>
4-
<li><a href="http://twgljs.org">TWGL, une librairie de base pour WebGL</a></li>
4+
<li><a href="https://twgljs.org">TWGL, une librairie de base pour WebGL</a></li>
55
<li><a href="https://github.com/gfxfundamentals/webgl-fundamentals">Github</a></li>
66
</ul>

webgl/lessons/fr/webgl-3d-perspective.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Mais il reste quelques soucis. Si on met Z à -100 on se retrouve avec quelque c
282282
Quest-ce qu'il se passe ? Pourquoi le F disparaît ? Tout comme WebGL tronque le X et le Y au-delà de -1 et +1 il tronque aussi le Z.
283283
Ce qu'on voit c'est le Z < -1.
284284

285-
Je pourrais entrer dans les détails pour résoudre ça mais [vous pouvez déduire la solution](http://stackoverflow.com/a/28301213/128511) comme on l'a fait dans les projections 2D. On a besoin de prendre Z, ajouter du déplacement et du changement d'échelle, et on peut ajuster tout ce qu'on veut entre -1 et +1.
285+
Je pourrais entrer dans les détails pour résoudre ça mais [vous pouvez déduire la solution](https://stackoverflow.com/a/28301213/128511) comme on l'a fait dans les projections 2D. On a besoin de prendre Z, ajouter du déplacement et du changement d'échelle, et on peut ajuster tout ce qu'on veut entre -1 et +1.
286286

287287
Ce qui est génial c'est que tout ça peut être fusionné dans une seule matrice ! Mieux, plutôt qu'un 'facteur de fuite' on va plutôt prendre en entrée l'angle du champ de vision désiré et calculer le reste à partir de ça.
288288

0 commit comments

Comments
 (0)