 One thing that needs to be specified is whether the shadow being cast is dynamic or static.A wall with a shadow on it is a static shadow.The wall is not moving and so its geometric shape is not going to move or change in the scene.