have you try the stencil shadows to make you shadow on terrains in your case?