I'd like to create a plane:
func getShadowPlane(_ width: Float, _ height: Float) -> ModelEntity {
let sphereResource = MeshResource.generatePlane(width: width,
depth: height)
let myMaterial = ShadowMataerial . ????
return ModelEntity(mesh: sphereResource, materials: [myMaterial])
}
& add it to my anchor at specific position. I'd like to get shadow data from the "lighting" I get from my camera that RealityKit is able to capture/generate.
I don't want to use
AnchorEntity(plane: AnchoringComponent.Target.Alignment.horizontal)
Any idea how can this be accomplished?
I can not find shadowCatcher material.