RealityKit: How-To set Point-, Spot- & Directional-Lights???

Hi,


I am struggeling to set extra lights programmatically in Realitykit via Swift .


I would like to use my on lights sources in a RealityKit, But I am struggeling with the definitions in Swift.

Could someone help me to define ans my own lights (and also calculate shadows from Spotlights) in a RealityKit scene?


I would especially need it for a ARView.CameraMode.nonAR session and while arView.renderOptions = [.disableAREnvironmentLighting] is set.



Are there any ways to also import these light sources via USD / USDZ files?

Having tried a USD file with lights (generated in Blender), but this information seems to be omitted with Apples usdconvert (version 0.61).

The USD files are conforming with pixars USD light definition. but this information semms to be lost while importing them into RealityKit


Thank you so much for pointing me into the right direction,


Andreas