Created
July 28, 2020 23:52
-
-
Save marshallmurphy/bdf0d73a5181a908347e18b6b0f00105 to your computer and use it in GitHub Desktop.
This file contains 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
//... | |
// 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