Say I wanted to make a render of a ghost. The ghost must be invisible to the camera, but it must still cast a shadow on the ground. How can I block light from passing though an object that is invisible?
You can't control the opacity of the shadows with this method, but it works for most cases. It also gets rid of the black square problem at intersections.