Is there a way that I have not seen to change the light intensity of directional light on the fly? Or even the surrounding light?
ambientLight = new THREE.AmbientLight(0xffffff); scene.add(ambientLight); directionalLightL = new THREE.DirectionalLight(0xffffff, dLight, 0); directionalLightL.position.set(dlpX, dlpY, dlpZ); scene.add(directionalLightL);
So this is done initially for rendering, but how can I change only one intensity intensity after that? Remove / re-add light? Find him in the house and change him? Something in the API I did not notice?
source share