Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement