If you want shadows on terrain just set an entity to have a stencil shadow. Then a dynamic shadow will be displayed on a terrain.