This image should describe it better:
https://i.imgur.com/Y2eCePe.png
The camera is viewing always at earth.
If I move the camera, the light should always point from behind the earth/sphere, towards it.
Whatever I try, itโs either on a fixed place, or in-front of the camera.
In theory, after adding a light to the sphere, maybe I can use some camera.position values inside position.set()?
E.g. this one also stays in one position and doesnโt update:
const earth = globe.scene().children.find((obj3d) => obj3d.type === 'Group');
earth.name = 'earth'
const pLight = new THREE.PointLight( 0xffffff, 1 );
pLight.position.copy(camera.position)
pLight.target = earth;
scene.add(pLight.target );
scene.add(pLight);
Any help appreciated