Can windows or volumes opened inside an ImmersiveSpace receive lighting from the immersive scene?

If I open a regular 2D window or a volumetric window while the ImmersiveSpace is active, is there any supported way for that window or volume to receive lighting from the immersive scene?

For example, if I have lights, environment lighting, or other lighting setup inside the ImmersiveSpace, can those lights affect the content of a 2D window or a volumetric window opened by the same app?

Or are windows, volumes, and immersive spaces rendered with separate lighting contexts?

I’d like to understand the recommended approach if I want UI panels or small 3D volumes opened during an immersive experience to visually match the lighting of the immersive environment.

Answered by Vision Pro Engineer in 891617022

Hello @Sakuya_Izayoi , thank you for your question!

Light from one scene cannot affect models in another scene. This means a scene inside a volumetric window will not be affected by lights from a different scene in an immersive space.

You may be able to work around this a bit by using an ImageBasedLightComponent in both scenes that uses the same EnvironmentResource data. This will not help in the case for dynamic lights, but it will ensure both scenes are rendered with similar environment lighting.

I encourage you to file feedback using Feedback Assistant, and we would especially love to learn more about your use case!

Hello @Sakuya_Izayoi , thank you for your question!

Light from one scene cannot affect models in another scene. This means a scene inside a volumetric window will not be affected by lights from a different scene in an immersive space.

You may be able to work around this a bit by using an ImageBasedLightComponent in both scenes that uses the same EnvironmentResource data. This will not help in the case for dynamic lights, but it will ensure both scenes are rendered with similar environment lighting.

I encourage you to file feedback using Feedback Assistant, and we would especially love to learn more about your use case!

Can windows or volumes opened inside an ImmersiveSpace receive lighting from the immersive scene?
 
 
Q