
This is a wall in a game I am making. I want shadows to be cast everywhere, but for the walls to be on top of the shadows

This is what happens when I bring the player towards the light occlusion. I do not want the shadows to be on the walls. I tried making the occluder cover all the wall area, but this ends up making everything very glitchy when the player goes behind the wall. How do I make the shadows render below the wall?
A similar thing happens with the player, I do not want shadows rendered on the player but that does happen when close to the wall.
The background carpet should have shadows rendered on it, the wall shouldn't