I am trying to illuminate only part of a scene with a single PointLight.
I’ve set the distance small above zero (which from the docs set infinity range), but still the light illuminates everything in the scene, even things out of range. Probably missing something obvious here, but what?
This is the light and the helper to show the light range:
I’ve made a demo in the editor, using your light settings. The range is rather small, but there aren’t any problems with it, which makes me believe the cause is situated somewhere else in your code. Would you mind sharing it?
Thank you, can you please try with a MeshStandardMaterial (metalness 0.99, roughness 0.6)? From my test in the editor the distance parameter has no effect on the light on the mesh. As you can see the mesh is still affected by the light, even when the light is very far away and distance set to 0.01
After some investigation, this seems to happen only on Mac OS (tested on chrome, firefox and safari ), in my case 10.14.4. On Windows and ios safari PointLight distance works just as expected. Anyone else using Mac OS has the same issue?