Skip to content

Instantly share code, notes, and snippets.

@evejweinberg
Created October 27, 2016 20:21
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 evejweinberg/c87117b60b5ba92c9e2206b8e13e379a to your computer and use it in GitHub Desktop.
Save evejweinberg/c87117b60b5ba92c9e2206b8e13e379a to your computer and use it in GitHub Desktop.
3js flashlight/spotlight
//SpotLight( color, intensity, distance, angle, penumbra, decay )
var flashlight = new THREE.SpotLight(0xffffff,.5,200,80);
camera.add(flashlight);
flashlight.castShadow = true;
flashlight.position.set(0,0,1);
flashlight.target = camera;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment