After version r69, the use of this pattern is no longer supported (*) :
directionalLight.position = camera.position;
Attempting to resolve this issue, I followed this advice :
var pointLight = new THREE.PointLight( 0xffffff, 1, 100 );
camera.add( pointLight );
However, the light does not seem to function properly (remains black), and the same occurs with a DirectionalLight
Any ideas on what might be causing this issue?
Note : It's worth mentioning that if I try this approach, the light no longer follows the camera:
var directionalLight = new THREE.DirectionalLight( 0xffffff, 1 );
directionalLight.position.set( camera.position.x, camera.position.y, camera.position.z );
scene.add( directionalLight );
Thank you in advance