Hi,
I’ve implemented planar shadows (on the ground plane) and they work well, except that when the light source is near the ground plane the shadows become very long and stretch off to the horizon (as you’d expect).
Apart from using the stencil buffer to limit the size of the polygon onto which the shadow is drawn, is there a way to limit the size of the shadow. I’m especially interested in finding a way to make it fall off gradually.
Cheers,
Chris