//... | |
// 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 )); | |
//... |