A megvilágítási kúpot fogja modellezni. Csak a fény objektumot várja paraméterként. A reflektor a cubeMesh objektumra fog irányulni.
geometry = new THREE.BoxGeometry( 4, 4, 4 );
material = new THREE.MeshPhongMaterial( { color: 0xffffff, wireframe: false } );
cubeMesh = new THREE.Mesh( geometry, material );
scene.add( cubeMesh );
let sLight = new THREE.SpotLight( 0xffffff, 100 );
sLight.position.set( 6, 6, 5 );
sLight.angle = Math.PI / 3;
sLight.target = cubeMesh;
sLight.penumbra = 0.8;
sLight.distance = 50.0;
scene.add( sLight );
let spotLightHelper = new THREE.SpotLightHelper( sLight );
scene.add( spotLightHelper );