Skip to content

Instantly share code, notes, and snippets.

@turner
Created April 8, 2019 20:11
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 turner/443e44feb30077d566f71811e531b3f2 to your computer and use it in GitHub Desktop.
Save turner/443e44feb30077d566f71811e531b3f2 to your computer and use it in GitHub Desktop.
Driver App for SpotlightDropShadow Class.
let spotlight = new SpotLightDropShadow({ color: appleCrayonColorThreeJS('snow'), intensity: 1.5, shadowSize: 1024, near: 0.8e3, far: 3.0e3, doShowHelper: true });
spotlight.addToScene(scene);
const near = 1e3;
const far = 2e3;
spotlight.pose({ position: new THREE.Vector3(-400, 1500, -400), target: new THREE.Vector3(-400, 0, -400), near, far });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment