Created
February 21, 2019 19:11
-
-
Save graphoarty/a1441353f0a4fc4e84462418607f143b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// initialize the light with the color white, the intensity of 2 and a distance of influence of 100 | |
var light = new THREE.PointLight(0xffffff, 2, 100); | |
// set the position of the light at 0, 0, 0 (where the camera is) | |
light.position.set(0, 0, 0); | |
// add the light to the scene | |
scene.add(light); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment