|
@@ -1,5 +1,4 @@
|
|
|
-three.js
|
|
|
-========
|
|
|
+# three.js
|
|
|
|
|
|
[![NPM Package][npm]][npm-url]
|
|
|
[![Build Size][build-size]][build-size-url]
|
|
@@ -7,7 +6,7 @@ three.js
|
|
|
[![DeepScan][deepscan]][deepscan-url]
|
|
|
[![Discord][discord]][discord-url]
|
|
|
|
|
|
-#### JavaScript 3D library ####
|
|
|
+#### JavaScript 3D library
|
|
|
|
|
|
The aim of the project is to create an easy to use, lightweight, cross-browser, general purpose 3D library. The current builds only include a WebGL renderer but WebGPU (experimental), SVG and CSS3D renderers are also available in the examples.
|
|
|
|
|
@@ -19,7 +18,7 @@ The aim of the project is to create an easy to use, lightweight, cross-browser,
|
|
|
[Forum](https://discourse.threejs.org/) —
|
|
|
[Slack](https://join.slack.com/t/threejs/shared_invite/zt-rnuegz5e-FQpc6YboDVW~5idlp7GfDw)
|
|
|
|
|
|
-### Usage ###
|
|
|
+### Usage
|
|
|
|
|
|
This code creates a scene, a camera, and a geometric cube, and it adds the cube to the scene. It then creates a `WebGL` renderer for the scene and camera, and it adds that viewport to the `document.body` element. Finally, it animates the cube within the scene for the camera.
|
|
|
|
|
@@ -58,7 +57,7 @@ function animation( time ) {
|
|
|
|
|
|
If everything went well, you should see [this](https://jsfiddle.net/7u84j6kp/).
|
|
|
|
|
|
-### Cloning this repository ###
|
|
|
+### Cloning this repository
|
|
|
|
|
|
Cloning the repo with all its history results in a ~2 GB download. If you don't need the whole history you can use the `depth` parameter to significantly reduce download size.
|
|
|
|
|
@@ -66,7 +65,7 @@ Cloning the repo with all its history results in a ~2 GB download. If you don't
|
|
|
git clone --depth=1 https://github.com/mrdoob/three.js.git
|
|
|
```
|
|
|
|
|
|
-### Change log ###
|
|
|
+### Change log
|
|
|
|
|
|
[Releases](https://github.com/mrdoob/three.js/releases)
|
|
|
|