Skip to content

Instantly share code, notes, and snippets.

@graphoarty
Created February 21, 2019 19:11
Show Gist options
  • Save graphoarty/a1441353f0a4fc4e84462418607f143b to your computer and use it in GitHub Desktop.
Save graphoarty/a1441353f0a4fc4e84462418607f143b to your computer and use it in GitHub Desktop.
// 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