Created
October 27, 2016 20:21
-
-
Save evejweinberg/c87117b60b5ba92c9e2206b8e13e379a to your computer and use it in GitHub Desktop.
3js flashlight/spotlight
This file contains hidden or 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
//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