Overlay a material onto terrain where a sphere hits the terrain?

This might work for you-