Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@peyloride
Created March 8, 2019 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peyloride/1ce9c218f993ccd10803ba12c51a4237 to your computer and use it in GitHub Desktop.
Save peyloride/1ce9c218f993ccd10803ba12c51a4237 to your computer and use it in GitHub Desktop.
// 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