Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created July 28, 2020 23:52
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 marshallmurphy/bdf0d73a5181a908347e18b6b0f00105 to your computer and use it in GitHub Desktop.
Save marshallmurphy/bdf0d73a5181a908347e18b6b0f00105 to your computer and use it in GitHub Desktop.
//...
// LIGHTING
const light = new THREE.PointLight("white", 1.25);
light.position.set(0, 0, 0);
scene.add(light);
const spotlight = new THREE.SpotLight(0xFFFFFF, 5, 25, Math.PI/7);
spotlight.position.set(25, 0, 0);
scene.add(spotlight);
// HELPERS
// scene.add(new THREE.PointLightHelper(light, 1));
// scene.add(new THREE.GridHelper(50, 50));
scene.add( new THREE.SpotLightHelper( spotlight ));
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment