You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2
-
# Help
2
+
# Help
3
3
#### The issues section is for bug reports and feature requests only. If you need help, please use the [forum](http://discourse.threejs.org/) or [stackoverflow](http://stackoverflow.com/questions/tagged/three.js).
4
4
---
5
5
# Bugs
@@ -25,4 +25,5 @@
25
25
2. Fork the repository on GitHub.
26
26
3. Check the [Contribution Guidelines](https://github.com/mrdoob/three.js/wiki/How-to-contribute-to-three.js).
27
27
4. Make changes to your clone of the repository.
28
-
5. Submit a pull request. Don't include build files in the PR.
28
+
5. If your changes leads to a change in examples, make a new screenshot with `npm run make-screenshot <example_name>`.
29
+
6. Submit a pull request. Don't include build files in the PR.
Download the [minified library](http://threejs.org/build/three.min.js) and include it in your HTML, or install and import it as a [module](http://threejs.org/docs/#manual/introduction/Import-via-modules),
27
-
Alternatively, see [how to build the library yourself](https://github.com/mrdoob/three.js/wiki/Build-instructions).
28
-
29
-
```html
30
-
<scriptsrc="js/three.min.js"></script>
31
-
```
32
-
33
25
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.
34
26
35
27
```javascript
28
+
import*asTHREEfrom'js/three.module.js';
29
+
36
30
var camera, scene, renderer;
37
31
var geometry, material, mesh;
38
32
@@ -70,22 +64,20 @@ function animate() {
70
64
}
71
65
```
72
66
73
-
If everything went well you should see [this](https://jsfiddle.net/f2Lommf5/).
67
+
If everything went well you should see [this](https://jsfiddle.net/972m5cdx/).
0 commit comments