Created
March 8, 2019 08:35
-
-
Save peyloride/1ce9c218f993ccd10803ba12c51a4237 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
// create a point light | |
const pointLight = new THREE.PointLight(0xFFFFFF); | |
// set its position | |
pointLight.position.x = 10; | |
pointLight.position.y = 50; | |
pointLight.position.z = 130; | |
// add to the scene | |
scene.add(pointLight); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment