In version 104 a LightProbe class has been introduced. I was curious and search a bit about the topic. If I understand correctly, light probes can be used to extract light information from a scene and use it “offline”, like using a lightmap. It’s not added yet to the documentation, thus I inspected directly the source and found that LightProbe class has a toJSON function, which let me think that you can export your lighting information to a json file and use it offline (meaning without the lights). Is that correct?
An official LightProbe example is available, but the toJSON function is never used. Instead it uses a copy function like the following:
lightProbe.copy( THREE.LightProbeGenerator.fromCubeTexture( cubeTexture ) )
My guess is the probe is storing light information from the cube texture…but what about the directional light? Is storing that light information too?
Could someone explain a bit about light probes in general and on this example in particular and which could be the use cases in three.js?
Thanks in advance (ツ)_.\m/