I have a question about using PointLight in my ThreeJs project. I am trying to make it point towards a specific direction shown in the image below, but so far I have been unsuccessful in changing its orientation. Here is the code snippet I am currently using:
const light = new THREE.PointLight( 0xffffff, 0.01, 40 );
light.position.set( 0, 0, 30 );
//light.rotateY(270); did not work
light.castShadow = true;
scene.add( light );