I found I can't let shadows work on entity with reality file or usdz, but it works on entity with reality composer.
Here is the code snippet:
penguin = try? Entity.loadModel(named: "penguin", in: nil)
penguinScene = try! PenguinRC.loadPenguinScene()
And I had tried with PointLightComponent.Shadow with following code, but it still can't work.
model.components[DirectionalLightComponent.Shadow.self] = DirectionalLightComponent.Shadow.init()
So how can I enable shadows on the model ?
Retrieving data ...