I have a plane as the ground, and I am animating a character to walk across the plane. The plane is a shadow catcher, because I'm doing VFX and I want to add shadows to the ground in the video, to make it more realistic. When the characters food slightly goes through the shadow catcher, it makes a dark spot where the foot goes through the plane. I'd like everything that goes through the shadow catcher to be invisible, so when the bottoms of the feet slightly go through the plane, there won't be any shadow issues. (See Attached Photos) If anyone can help, I'd appreciate it!
If it is a plane...you can use this very simple basic setup: (thanks to vklidu for the modified version with more charm)