|
@@ -7,7 +7,7 @@ it as easy as possible to get 3D content on a webpage.
|
|
|
|
|
|
Three.js is often confused with WebGL since more often than
|
|
|
not, but not always, three.js uses WebGL to draw 3D.
|
|
|
-[WebGL is a very low-level system that only draws points, lines, and triangles](https://webglfundamentals.org).
|
|
|
+[WebGL is a very low-level system that only draws points, lines, and triangles](https://webglfundamentals.org).
|
|
|
To do anything useful with WebGL generally requires quite a bit of
|
|
|
code and that is where three.js comes in. It handles stuff
|
|
|
like scenes, lights, shadows, materials, textures, 3d math, all things that you'd
|
|
@@ -15,7 +15,7 @@ have to write yourself if you were to use WebGL directly.
|
|
|
|
|
|
These tutorials assume you already know JavaScript and, for the
|
|
|
most part they will use ES6 style. [See here for a
|
|
|
-terse list of things you're expected to already know](threejs-prerequisites.html).
|
|
|
+terse list of things you're expected to already know](threejs-prerequisites.html).
|
|
|
Most browsers that support three.js are auto-updated so most users should
|
|
|
be able to run this code. If you'd like to make this code run
|
|
|
on really old browsers look into a transpiler like [Babel](http://babel.io).
|
|
@@ -25,7 +25,7 @@ that can't run three.js.
|
|
|
When learning most programming languages the first thing people
|
|
|
do is make the computer print `"Hello World!"`. For 3D one
|
|
|
of the most common first things to do is to make a 3D cube.
|
|
|
-so let's start with "Hello Cube!"
|
|
|
+So let's start with "Hello Cube!"
|
|
|
|
|
|
The first thing we need is a `<canvas>` tag so
|
|
|
|
|
@@ -170,7 +170,7 @@ and passing it the scene and the camera
|
|
|
renderer.render(scene, camera);
|
|
|
```
|
|
|
|
|
|
-Here's a working exmaple
|
|
|
+Here's a working example
|
|
|
|
|
|
{{{example url="../threejs-fundamentals.html" }}}
|
|
|
|