Shadow with a vertex shader

How to produce shadows with vertex functions.