Hey guys! I have question for my project. I want my 3D character with an PBR Shader to only receive IBL from my HDRI map and not receive any lighting from the surrounding environment when viewing on Apple Vision Pro. Any tips?
Thank you in advance!
Hey guys! I have question for my project. I want my 3D character with an PBR Shader to only receive IBL from my HDRI map and not receive any lighting from the surrounding environment when viewing on Apple Vision Pro. Any tips?
Thank you in advance!
This is possible. Use ImageBasedLightComponent and ImageBasedLightReceiverComponent to receive lighting from your HDRI map and EnvironmentLightingConfigurationComponent (released in visionOS Beta 2) with environmentLightingWeight set to 0 to remove the surrounding environment lighting.
The session Optimize your 3D assets for spatial computing covers the use of the ImageBasedLightComponent and the ImageBasedLightReceiverComponent.
The relevant portion is at the ~16min mark: https://developer.apple.com/videos/play/wwdc2024/10186/?time=963