Ambient light limited to within a boxed area?

Is it possible to limit an ambient light to within a specific area? For example if you want to evenly luminate only what is inside a room. It doesn’t appear as if there are any lights available that can do this.

Also would be useful if there was a way to subtract light from an area as well.

so far the only way is to turn autoClear off and render two scenes

Selective lighting will be supported with WebGPURenderer and the new node material system. There is already an example demonstrating this feature:

three.js - WebGPU - Selective Lights (Chrome Canary required)

In context of WebGL, you need indeed separate scenes for each area (and its lights).

This will never be supported since it’s a physically incorrect usage of lighting.