I have an ARKit App using SceneKit to render.
I am using a directional light that casts shadows onto an invisible floor plane. In order to do this I have to (?) use shadowMode = .deferred
on the light. But this results in the ugly self shadowing in the image:
How can I avoid this and still keep the shadow on the floor plane? The lighting seems fine with shadowMode = .forward
, but then I get no shadow on the floor.